WiX installer Bundle Launch App after install

大兔子大兔子 提交于 2019-12-11 09:38:58

问题


I have one bundle that includes PackageGroupRef for NetFx45Web, one ExePackage for needed driver and MsiPackage for my app. I want to launch my app after whole installation process completes. I tried using

<Property Id="WixShellExecTarget" Value="[#myEXE]" />
    <CustomAction Id='LaunchFile'
        BinaryKey="WixCA"
        DllEntry="WixShellExec"
        Impersonate="yes"/>

in my app MsiPackage but it starts the app before installation is complete(when MsiPackage completes).


回答1:


Create a variable like this, in your bundle.wxs:

<Variable Name="LaunchTarget" Value="[ProgramFilesFolder]\YourFolder\YourExe.exe"/>


来源:https://stackoverflow.com/questions/25868884/wix-installer-bundle-launch-app-after-install

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!