title: Wix Boolean Property Values Don't Work
body: <p>I have the following property:</p>
  
  <pre><code>&lt;Property Id="UPDATEDB"&gt;1&lt;/Property&gt;
  </code></pre>
  
  <p>A checkbox in the UI bound to that property:</p>
  
  <pre><code>&lt;Control Id="updateDatabase" Type="CheckBox" CheckBoxValue="1" Height="15" Width="95" X="20" Y="74" Text="Update Database" Property="UPDATEDB" /&gt;
  </code></pre>
  
  <p>And a Custom Action which does something based on the value of this property</p>
  
  <pre><code>&lt;CustomAction Id="RunDbMigration" Directory="INSTALLDIR" Return="check"
            ExeCommand='[DBMIGRATIONDIR]\DbMigration.exe' /&gt;
  
  &lt;InstallExecuteSequence&gt;
    &lt;Custom Action="RunDbMigration" After="InstallFinalize"&gt;UPDATEDB=1 AND NOT Installed&lt;/Custom&gt;
  &lt;/InstallExecuteSequence&gt;
  </code></pre>
  
  <p>If I try to pass a value of 0 for UPDATEDB from the command line:</p>
  
  <pre><code>msiexec /i "Setup.msi" /l* UPDATEDB=0
  </code></pre>
  
  <p>or</p>
  
  <pre><code>msiexec /i "Setup.msi" /l* UPDATEDB="0"
  </code></pre>
  
  <p>the value of the checkbox is checked anyway. That said, the 0 passed in seems to be respected and the RunDbMigration action is not run...</p>
  
  <p>What's going on here? Why is this such rocket science?</p>