title: WiX Bundle bal:condition - util:RegistrySearch - Not working
body: <p>A similar post is up here but I cant get mine working
  <a href="https://stackoverflow.com/questions/16108405/wix-bundle-balcondition-utilregistrysearch-variable-always-false/40518016#40518016">WiX Bundle bal:condition - util:RegistrySearch variable always false</a> </p>
  
  <p>Sir, I am struggling get this exact thing working. "Version" is set to 0 when Registry key is absent and to 1 when key is present. Either cases my bundle still gets installed.</p>
  
  <p>I am using VS 2015 and Wix 3.10. Pls can you help.  </p>
  
  <pre><code>&lt;Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
   xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"
   xmlns:bal="http://schemas.microsoft.com/wix/BalExtension"&gt;  
   &lt;Bundle Name="XXX"
        Version="XXX"
        Manufacturer="XXX"
        UpgradeCode="XXX"
        IconSourceFile="XXX"
        Copyright="XXX" &gt;
  
  &lt;util:RegistrySearchRef Id='SearchForMyIns' /&gt;
  
  &lt;BootstrapperApplicationRef Id="ManagedBootstrapperApplicationHost"&gt;
    ...
  &lt;/BootstrapperApplicationRef&gt;
  
  &lt;Chain&gt;
    &lt;PackageGroupRef Id='NetFx40Web' /&gt;
  
    &lt;MsiPackage SourceFile="$(var.DummyInstaller.TargetDir)\DummyInstaller.msi"  DisplayName="Dummy Conditioning" /&gt;      
  &lt;/Chain&gt;
  &lt;/Bundle&gt;
  
  &lt;Fragment&gt;
  &lt;util:RegistrySearch
        Id='SearchForMyInst'
        Variable="Version"
        Result="exists"
        Root="HKLM"
        Key="SOFTWARE\MyInst" 
        Win64="yes" /&gt;
  &lt;bal:Condition Message="ThirdParty Application Required."&gt;Version&lt;/bal:Condition&gt;
  &lt;/Fragment&gt;
  
  &lt;/Wix&gt;
  </code></pre>