I can use WiX to launch my application at the end of the installation, but I cannot get my application to work in the foreground

Using WiX, my installation will, if necessary, run one of my installed program files. However, when my application is launched by the installer, it usually does not appear in the foreground of the user's desktop. He is buried under other windows, so he does not immediately inform the user that the program is running.

I tried to force my program to force itself to the top when it started, but this did not change the way it started when the installer started it.

+7
windows-installer wix
source share
1 answer

Found a solution for this. I changed the definition of CustomAction to use "FileKey" and not "BinaryKey". I'm not sure, but I assume that running the application using the exec exec command was responsible for ensuring that my application did not appear in the foreground.

<!-- old code --> <CustomAction Id="LaunchApp" BinaryKey="WixCA" DllEntry="WixShellExec" Impersonate="yes" /> <!-- new code --> <CustomAction Id="LaunchApp" FileKey="FooBarEXE" ExeCommand="" Return="asyncNoWait" Impersonate="yes" /> 
+6
source share

All Articles