I am new to Windows Installer and Wix, so please excuse the beginners question.
I use WixUI_InstallDir and added a custom dialog that shows 3 checkboxes after LicenseAgreementDlg and before InstallDirDlg. Is there a way to conditionally show the "Run installed application" checkbox in ExitDialog only when the first checkbox is selected and the installation program is executed for the first time?
In my wxs file I have
<Property Id="Checkbox1" Value="1"/>
<Property Id="Checkbox2"/>
<Property Id="Checkbox3"/>
<CustomAction Id="CA_Set_WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Property="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="Launch application."/>
<InstallUISequence>
<Custom Action="CA_Set_WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" After="FindRelatedProducts">Checkbox1 = 1 and NOT Installed</Custom>
</InstallUISequence>
<UI>
<UIRef Id="WixUI_InstallDir"/>
<UIRef Id="WixUI_ErrorProgressText"/>
<DialogRef Id="MyCheckboxesDlg"/>
<Publish Dialog="LicenseAgreementDlg" Control="Next" Event="NewDialog" Value="MyCheckboxesDlg" Order="3">LicenseAccepted = "1"</Publish>
<Publish Dialog="InstallDirDlg" Control="Back" Event="NewDialog" Value="MyCheckboxesDlg">1</Publish>
</UI>
My problem is that if I uncheck the first checkbox, the value of the Checkbox1 property will be set to 0 after the installation of InstallUISequence is complete, so the launch application will be displayed in the completion dialog.
, UISequence ExecuteSequence?