Installer does not close after running custom acti

2019-07-09 13:06发布

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.

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.

Thanks!

标签: wix
1条回答
Deceive 欺骗
2楼-- · 2019-07-09 13:15

Adding the following seems to work;

<Publish Dialog="ExitDialog" Control="Finish" Event="EndDialog" Value="Return" Order="999">1</Publish>
查看更多
登录 后发表回答