I have an MSI that does nothing but launch an application and exit. The main reason why I had to use an MSI is because the application I'm launching has a pre-requisite and MSI provided me a way of bootstrapping the pre-requisite. Anyhow, my design involves a custom dialog with a Finish button that will launch the selected application and exit the entire installation process without displaying anymore dialog windows. The launching of the selected app works fine, but the process of exiting the MSI is quirky. My custom dialog will close for a few seconds then it will pop up again. I tried experimenting with WixExitEarlyWithSuccess but to no avail. I have a snippet of my code below, I'll appreciate it very much if someone can have a look and let me know what I'm doing wrong.
<Publish Dialog="MyCustomDialog" Control="Finish" Event="DoAction" Value="LaunchMyApp1">APP_TYPE = "MYAPP1"</Publish> <Publish Dialog="MyCustomDialog" Control="Finish" Event="DoAction" Value=" LaunchMyApp2">APP_TYPE = "MYAPP2"</Publish> <Publish Dialog="MyCustomDialog" Control="Finish" Event="DoAction" Value=" LaunchMyApp3">APP_TYPE = "MYAPP3"</Publish> <Publish Dialog="MyCustomDialog" Control="Finish" Event="EndDialog" Value="Return" Order="999" >1</Publish> <InstallUISequence> <Show Dialog="MyCustomDialog" OnExit="success" /> </InstallUISequence> <AdminUISequence> <Show Dialog="MyCustomDialog" OnExit="success" /> </AdminUISequence> <InstallExecuteSequence> <Custom Action="WixExitEarlyWithSuccess" Before="InstallInitialize"/> </InstallExecuteSequence> <CustomActionRef Id="WixExitEarlyWithSuccess" /> <CustomAction Id="LaunchMyApp1" BinaryKey="MyApp1" ExeCommand="" Execute="immediate" Impersonate="no" Return="asyncNoWait" /> <CustomAction Id="LaunchMyApp2" BinaryKey="MyApp2" ExeCommand="" Execute="immediate" Impersonate="no" Return="asyncNoWait" /> <CustomAction Id="LaunchMyApp3" BinaryKey="MyApp3" ExeCommand="" Execute="immediate" Impersonate="no" Return="asyncNoWait" /> <Binary Id='MyApp1' SourceFile='MyApp1.exe' /> <Binary Id='MyApp2' SourceFile='MyApp2.exe' /> <Binary Id='MyApp3' SourceFile='MyApp3.exe' /> <Property Id="APP_TYPE" Value="MYAPP1" /> ------------------------------------------------------------------------------ 10 Tips for Better Web Security Learn 10 ways to better secure your business today. Topics covered include: Web security, SSL, hacker attacks & Denial of Service (DoS), private keys, security Microsoft Exchange, secure Instant Messaging, and much more. http://www.accelacomm.com/jaw/sfnl/114/51426210/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users