我已经让我的 Wix 安装程序在完成安装后运行一个应用程序。现在可以使用,但安装程序不会关闭。每次单击“完成”按钮时,应用程序都会再次启动。 我希望应用程序异步运行,然后安装程序终止。
这就是我在 Wix 中的做法;
<UI>
<Publish Dialog="ExitDialog" Control="Finish" Order="1" Event="DoAction" Value="LaunchApplication">WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 and NOT Installed</Publish>
</UI>
<Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="Launch $(var.ProductName) Launcher" />
<Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOX" Value="1" />
<CustomAction Id="LaunchApplication" FileKey="LnLauncherExe" ExeCommand="" Execute="immediate" Return="asyncNoWait" Impersonate="yes" />
我遇到的另一个问题是该复选框没有显示。我可以忍受这个,但如果有人能找出原因,那就太好了。
谢谢!
最佳答案
添加以下内容似乎有效;
<Publish Dialog="ExitDialog" Control="Finish" Event="EndDialog" Value="Return" Order="999">1</Publish>
关于wix - 运行自定义操作后安装程序不会关闭,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20044606/