运行自定义操作后安装程序未关闭 [英] Installer does not close after running custom action
本文介绍了运行自定义操作后安装程序未关闭的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在完成安装后,我让我的 Wix 安装程序运行了一个应用程序.这现在有效,但安装程序没有关闭.每次单击完成"按钮时,应用程序都会再次启动.我希望应用程序异步运行,然后安装程序终止.
I've made my Wix installer run an application after finishing installation. This now works, but the installer does not close. Every time I click the Finish button, the application is started once more. I'd like the application to be run async and then installer terminate.
这就是我在 Wix 中所做的;
This is how I did it in 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" />
我遇到的另一个问题是复选框没有显示.我可以忍受这个,但如果有人能发现原因,那么修复就好了.
An other problem I have is that the checkbox does not show up. I can live with this, but if someone can spot why, it would be nice to get fixed.
谢谢!
推荐答案
添加以下内容似乎有效;
Adding the following seems to work;
<Publish Dialog="ExitDialog" Control="Finish" Event="EndDialog" Value="Return" Order="999">1</Publish>
这篇关于运行自定义操作后安装程序未关闭的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文