How To Run the Installed Application After Setup in Wix?
I want to execute the application, I have upgraded. http://wix.sourceforge.net/manual-wix3/run_program_after_install.htm does not work for me开发者_JAVA技巧 as I do not have an Exit dialog.
<InstallExecuteSequence>
<Custom Action="LaunchApplication" OnExit="success">CLIENTUILEVEL = 2 AND NOT Installed</Custom>
<InstallExecuteSequence>
where Custom action LaunchApplication will execute to open the application.
In WiX 3.8, the only way I've found to do this is
<CustomAction Id="LaunchFile" FileKey="..." ExeCommand="" Return="asyncNoWait" />
<InstallExecuteSequence>
<Custom Action="LaunchFile" After="InstallFinalize">NOT Installed</Custom>
</InstallExecuteSequence>
Which triggers after the "Install" button in the UI, and before the "Finish" button. Also works fine in /quiet
mode.
精彩评论