【发布时间】:2018-07-30 14:12:49
【问题描述】:
我有这个应用程序,它是一个使用 WIX 工具集的 MSI 应用程序。我遇到了一个问题,当使用某些第三方软件进行部署时,例如 Windows Server 2012 R2 上的 COMODO 一个 ADDT 工具,应用程序在安装后无法启动。 WIX 配置配置为在通过 CustomAction 安装后启动可执行文件。
我知道“Impersonate=yes”,但是,显然在部署 MSI 时,使用了 SYSTEM 用户帐户,这会阻止“Impersonate=yes”正常工作。
这是应用程序的启动方式:
<Property Id="WixShellExecTarget" Value="[#appEXE]" />
<CustomAction Id="LaunchApplication" BinaryKey="WixCA" DllEntry="WixShellExec" Impersonate="yes" />
<InstallExecuteSequence>
<Custom Action="LaunchApplication" After='InstallFinalize'>NOT Installed</Custom>
</InstallExecuteSequence>
因此问题是,当 MSI 从 SYSTEM 用户帐户运行时,是否可以作为登录用户启动“CustomAction”?
【问题讨论】:
标签: windows deployment wix windows-installer