title: WiX uninstall UI property not set
body: <p>I am trying to set a property via a WiX UI that is used at uninstall time.  I have done this successfully at install time.  Is there a difference in the sequence that is preventing me from getting the set property?  It seems that my property, REMOVEDATABASES is never set.  Or perhaps I need to publish it?  Here are some code snippets.  Any help is appreciated.</p>
  
  <p>My property:</p>
  
  <pre><code>&lt;Property Id="REMOVEDATABASES" Value="0" /&gt;
  </code></pre>
  
  <p>How I get to the dialog that allows the user to set the property:</p>
  
  <pre><code>&lt;UI Id="WixUI_App"&gt;
    ...
    &lt;Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="MaintenanceTypeDlg" Order="2"&gt;Installed&lt;/Publish&gt;
  
    &lt;Publish Dialog="MaintenanceWelcomeDlg" Control="Next" Event="NewDialog" Value="MaintenanceTypeDlg"&gt;1&lt;/Publish&gt;
  
    &lt;Publish Dialog="MaintenanceTypeDlg" Control="RepairButton" Event="NewDialog" Value="VerifyReadyDlg"&gt;1&lt;/Publish&gt;
    &lt;Publish Dialog="MaintenanceTypeDlg" Control="RemoveButton" Event="NewDialog" Value="SetConfigurationUnInstallDlg"&gt;1&lt;/Publish&gt;
    &lt;Publish Dialog="MaintenanceTypeDlg" Control="Back" Event="NewDialog" Value="MaintenanceWelcomeDlg"&gt;1&lt;/Publish&gt;
     ...
  &lt;/UI&gt;
  </code></pre>
  
  <p>My dialog that uses the property:</p>
  
  <pre><code>   &lt;Dialog Id="SetConfigurationUnInstallDlg" Width="370" Height="270" Title="Uninstall option"&gt;
      &lt;Control Id="NextUninstall" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Text="!(loc.WixUINext)"  &gt;
        &lt;Publish Event="NewDialog" Value="VerifyReadyDlg"&gt;1&lt;/Publish&gt;
      &lt;/Control&gt;
      &lt;Control Id="BackUninstall" Type="PushButton" X="180" Y="243" Width="56" Height="17" Text="!(loc.WixUIBack)" &gt;
        &lt;Publish Event="SpawnDialog" Value="MaintenanceTypeDlg"&gt;1&lt;/Publish&gt;
      &lt;/Control&gt;
      &lt;Control Id="CancelUninstall" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="!(loc.WixUICancel)"&gt;
        &lt;Publish Event="SpawnDialog" Value="CancelDlg"&gt;1&lt;/Publish&gt;
      &lt;/Control&gt;
  
       ....
  
      &lt;Control Id="UnistallDBLabel" Type="Text" X="20" Y="60" Width="80" Height="14" NoPrefix="yes" Text="Unistall Database?" /&gt;
      &lt;Control Id="RadioButtonGroupID" Type="RadioButtonGroup" X="20" Y="58" Width="305" Height="100" Property="REMOVEDATABASES" Text="Remove Databases?" Default="no"&gt;
        &lt;RadioButtonGroup Property="REMOVEDATABASES"&gt;
          &lt;RadioButton Value="0" X="100" Y="0" Width="200" Height="10" Text="No" /&gt;
          &lt;RadioButton Value="1" X="100" Y="20" Width="200" Height="10" Text="Yes" /&gt;
        &lt;/RadioButtonGroup&gt;
      &lt;/Control&gt;
    &lt;/Dialog&gt;
  </code></pre>
  
  <p>And, finally, my code that tries to use the property:</p>
  
  <pre><code>      &lt;Component Id="cmpDatabaseUnInstall" Guid="B6D21CE5-9470-4D78-8760-E9AE04A91AB4"  KeyPath="yes"&gt;
      &lt;Condition&gt;REMOVEDATABASES = "1"&lt;/Condition&gt;
      &lt;sql:SqlDatabase Id="masterDB" Server="[SERVER]" Instance="[INSTANCE_NAME]" Database="master"
                     CreateOnInstall="no" ConfirmOverwrite="yes" DropOnUninstall="no" ContinueOnError="no"
                     CreateOnReinstall="no" CreateOnUninstall="no" DropOnInstall="no" DropOnReinstall="no"&gt;
      &lt;/sql:SqlDatabase&gt;
      &lt;sql:SqlScript Id="DropAllDatabases"
                     SqlDb="masterDB" BinaryKey="DropAllDatabases"
                     ContinueOnError="yes" ExecuteOnInstall="no" ExecuteOnReinstall="no" ExecuteOnUninstall="yes"
                     Sequence="1"/&gt;
    &lt;/Component&gt;
  </code></pre>
  
  <p>Thanks,
  Scott</p>