title: Failing condition wix
body: <p>I am trying to skip installations in the following cases:</p>
  
  <ol>
  <li>Windows OS type is  = desktop OS</li>
  <li>if HKLM\SYSTEM\CurrentControlSet\Services\MyService MYKEY= myValue</li>
  <li>if REG HKLM\SYSTEM\CurrentControlSet\Services\MyService = DisplayName is present
  AND HKLM\SYSTEM\CurrentControlSet\Services\MyService MYKEY is not present</li>
  </ol>
  
  <p>while installation it went well, but while installation my feature is missing from installation. </p>
  
  <p>Am I doing anything wrong in putting condition?</p>
  
  <pre><code>&lt;Property Id="MYKEY" Secure="yes"&gt;
          &lt;RegistrySearch Id="MyKey"
                               Root="HKLM"
                               Key="SYSTEM\CurrentControlSet\Services\MyService"
                               Name="mykey"
                               Type="raw" /&gt;
      &lt;/Property&gt;
      &lt;Property Id="MYSERVICE" Secure="yes"&gt;
          &lt;RegistrySearch Id="MYSERVICE"
                          Root="HKLM"
                               Key="SYSTEM\CurrentControlSet\Services\MyService"
                               Name="DisplayName"
                               Type="raw" /&gt;
      &lt;/Property&gt;
  &lt;Feature Id="MyFeature" Level="" Display="" Title="" Description="" AllowAdvertise="no" ConfigurableDirectory="INSTALLDIR"&gt;
     &lt;MergeRef Id="MyFeature" Primary="yes"/&gt;
     &lt;Condition Level="0"&gt;((MsiNTProductType=1) OR 
     (MYKEY="MyValue") OR 
     (MYSERVICE="MyService" AND MYKEY=""))&lt;/Condition&gt;
     &lt;/Condition&gt;
  &lt;/Feature&gt;
  </code></pre>