2

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!

bleze
  • 51
  • 1
  • 14
  • Have you followed this How To article? http://wixtoolset.org/documentation/manual/v3/howtos/ui_and_localization/run_program_after_install.html – Yan Sklyarenko Nov 18 '13 at 09:48
  • Yan, yes I have. The problem is not the launch of the application but rather the installer not closing when pressing the Finish button. – bleze Nov 18 '13 at 10:36

1 Answers1

3

Adding the following seems to work;

<Publish Dialog="ExitDialog" Control="Finish" Event="EndDialog" Value="Return" Order="999">1</Publish>
bleze
  • 51
  • 1
  • 14
  • How does your custom action get executed though if you are no longer tying it to the Finish button? – Cole W Jun 20 '14 at 18:39
  • Apparently I didn't read it close enough. You only added that line you didn't replace the one you mention in your question above. This works. – Cole W Jun 20 '14 at 20:41