从设置套件中的 WiX 启动应用程序?

发布于 2024-10-08 07:11:54 字数 612 浏览 0 评论 0原文

我有一个 WiX 安装程序包中的应用程序。该软件包是使用 VS2010 安装工具包安装的先决条件(以及其他几个软件包)。

如果我单独运行 WiX 安装程序,我的应用程序在安装后启动得很好。但是当我运行 setup.exe 时,该应用程序无法启动。在我的 WiX wxs 文件中,我有以下内容:

<InstallExecuteSequence>
<Custom Action="LaunchApplication"
        After="InstallFinalize"/>
</InstallExecuteSequence>
<Property Id="WixShellExecTarget"
      Value="[#MyApp.exe]" />
<CustomAction Id="LaunchApplication"
          BinaryKey="WixCA"
          DllEntry="WixShellExec"
          Impersonate="yes" />

由于我的 WiX msi 包含在安装工具包中,因此我没有任何 UI,并且此应用程序应该始终启动。

对正在发生的事情有什么想法吗?

I have an application that I have in a WiX installer package. This package is a prerequisite (along with a couple of others) installed using a VS2010 Setup kit.

If I run the WiX installer alone, my application starts just fine after install. But when I run setup.exe, the application does not start. In my WiX wxs file, I have this:

<InstallExecuteSequence>
<Custom Action="LaunchApplication"
        After="InstallFinalize"/>
</InstallExecuteSequence>
<Property Id="WixShellExecTarget"
      Value="[#MyApp.exe]" />
<CustomAction Id="LaunchApplication"
          BinaryKey="WixCA"
          DllEntry="WixShellExec"
          Impersonate="yes" />

Since my WiX msi is wrapped in the setup kit, I dont have any UI, and this application should ALWAYS start.

Any thoughts on what is going on?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

勿忘心安 2024-10-15 07:11:54

检查详细日志以查看 WixShellExec 是否正在记录错误。

Check a verbose log to see if WixShellExec is logging errors.

挽梦忆笙歌 2024-10-15 07:11:54

尝试使用 dotnetinstaller

它是一个免费工具,使用 dotnetinstaller 的好处是您可以将您的 msi 与其合并,并生成一个可由管理员执行的 exe,这与 msi 文件不同。

在 dotnetinstaller 中,您可以定义先决条件等等。

Try using dotnetinstaller.

It is a free tool and the benefit of using dotnetinstaller is you can merge your msi with that and can generate an exe which can be executed an administrator unlike msi file.

In dotnetinstaller you can have pre-conditions defined and much more.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文