【发布时间】:2013-11-18 09:45:46
【问题描述】:
我已让我的 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" />
我遇到的另一个问题是复选框没有显示。我可以忍受这个,但如果有人能找出原因,最好能解决。
谢谢!
【问题讨论】:
-
您是否关注过这篇“如何做”文章? wixtoolset.org/documentation/manual/v3/howtos/…
-
颜,是的,我有。问题不是应用程序的启动,而是安装程序在按下完成按钮时没有关闭。
标签: wix