title: .Net - Registry Key Launch Condition
body: <p>I'm trying to add a launch condition to my .msi package deployment but it's not working. I want to check if UAC is enabled in the target machine. My values for the registry search are:</p>
  
  <pre><code> Property: UACSTATUS
   RegKey: SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
   Root: vsdrrHKLM
   Value: EnableLUA
  </code></pre>
  
  <p>The value is of a REG_DWORD type. 1 for enabled, 0 for disabled.</p>
  
  <p>Then I created the launch condition:</p>
  
  <pre><code> (Name): UACVerification
   Condition: UACSTATUS = 0
   InstallUrl: &lt;left blank for now&gt;
   Message: You must disable UAC prior to install this application.
  </code></pre>
  
  <p>The problem is: it doesn't work. Testing in my machine (which has UAC disabled), both comparisons for 0 or 1 in the Condition returns false and doesn't allow me to continue with the installation.</p>
  
  <p>Aren't REG_DWORD types treated as numbers? I tried using quotes ("0", or '0') but it does not work as well.</p>