开发者

How To Run the Installed Application After Setup in Wix?

开发者 https://www.devze.com 2022-12-13 18:06 出处:网络
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.<Instal

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号