title: Wix installer - conditionally display "Launch application" on ExitDialog based on custom dialog input
body: <p>I'm new to Windows Installer and Wix so please forgive the newbie question.</p>
  
  <p>I'm using WixUI_InstallDir and added a custom dialog that shows 3 checkboxes after LicenseAgreementDlg and before InstallDirDlg. Is there a way to conditionally show the "Launch installed application" checkbox on the ExitDialog only when the first checkbox is checked and the installer is executed for the first time?</p>
  
  <p>In my wxs file, I have</p>
  
  <pre><code>&lt;!-- Property for each checkbox value (first checkbox checked by default) --&gt;
  &lt;Property Id="Checkbox1" Value="1"/&gt;
  &lt;Property Id="Checkbox2"/&gt;
  &lt;Property Id="Checkbox3"/&gt;
  
  &lt;!-- Custom action to set exit dialog checkbox --&gt;
  &lt;CustomAction Id="CA_Set_WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Property="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="Launch application."/&gt;
  
  &lt;InstallUISequence&gt;
      &lt;Custom Action="CA_Set_WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" After="FindRelatedProducts"&gt;Checkbox1 = 1 and NOT Installed&lt;/Custom&gt;
  &lt;/InstallUISequence&gt;
  
  &lt;!-- User Interface --&gt;
  &lt;UI&gt;
      &lt;UIRef Id="WixUI_InstallDir"/&gt;
      &lt;UIRef Id="WixUI_ErrorProgressText"/&gt;
      &lt;DialogRef Id="MyCheckboxesDlg"/&gt;
      &lt;Publish Dialog="LicenseAgreementDlg" Control="Next" Event="NewDialog" Value="MyCheckboxesDlg" Order="3"&gt;LicenseAccepted = "1"&lt;/Publish&gt;
      &lt;Publish Dialog="InstallDirDlg" Control="Back" Event="NewDialog" Value="MyCheckboxesDlg"&gt;1&lt;/Publish&gt;
  &lt;/UI&gt;
  </code></pre>
  
  <p>My problem is that if I uncheck the first checkbox, the Checkbox1 property value is set to 0 after the InstallUISequence ends so the launch app in the exit dialog is still displayed. </p>
  
  <p>Where should I set the property, in the UISequence or ExecuteSequence?</p>