I need to end my installation early based on a certain condition, after displaying the Welcome Dialog, then a custom message dialog (already written) explaining why the installer is exiting. Here's my code:
<Publish Dialog="WelcomeDlg" Control="Next" Event="DoAction" Value="CheckForCondition" Order="1">1</Publish>
<Publish Dialog="WelcomeDlg" Control="Next" Event="SpawnDialog" Value="ConditionExistsMsgDlg" Order="2">CONDITIONEXISTS = "1"</Publish>
<Publish Dialog="WelcomeDlg" Control="Next" Event="?????" Value="??????" Order="3">CONDITIONEXISTS = "1"</Publish>
<Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="AfterWelcomeDlg" Order="4">CONDITIONEXISTS = "0"</Publish>
What goes in the Event and Value fields in Order=3? I tried WixExitEarlyWithSuccess CA, but that did indicate an error. I'd like to just go to some sort of Finished dialog without MSI informing the user that there was an error. Is this possible?