How to run an installed application after installing on Wix?

I want to run the application, I updated it. http://wix.sourceforge.net/manual-wix3/run_program_after_install.htm does not work for me since I don’t have an Exit dialog box.

+3
source share
2 answers
<InstallExecuteSequence>
<Custom Action="LaunchApplication" OnExit="success">CLIENTUILEVEL = 2 AND NOT Installed</Custom>
<InstallExecuteSequence>

where the LaunchApplication custom action will be executed to launch the application.

+3
source

On WiX 3.8, the only way I found this is

    <CustomAction Id="LaunchFile" FileKey="..." ExeCommand="" Return="asyncNoWait" />
    <InstallExecuteSequence>
        <Custom Action="LaunchFile" After="InstallFinalize">NOT Installed</Custom>
    </InstallExecuteSequence>

which runs after the Install button in the user interface and before the Finish button. Also works great in mode /quiet.

+1
source

Source: https://habr.com/ru/post/1725095/


All Articles