title: Why does the WiX FileSearch and DetectCondition not work here?
body: <p>I want WiX to install <a href="http://msdn.microsoft.com/en-us/library/3ks53324%28v=vs.71%29.aspx" rel="nofollow">MSChart</a> for .NET 3.5 first, which is the ExePackage. At the moment, it always installs it even if it's already there. I detect if it's already installed by looking in the destination directory in the <code>MSChartInstalled FileSearch</code></p>
  
  <pre><code>&lt;Bundle ... etc.&gt;
      &lt;Chain&gt;
          &lt;ExePackage Id="mschart" SourceFile="MSChart.exe"
                      DetectCondition="MSChartInstalled"
                      Permanent="yes"
          /&gt;
  
          &lt;MsiPackage SourceFile="..\Setup\bin\Release\Setup.msi" /&gt;
      &lt;/Chain&gt;
  &lt;/Bundle&gt;
  
  &lt;Fragment&gt;
      &lt;util:FileSearch
            Id='SearchForMSChart'
            Variable="MSChartInstalled"
            Result="exists"
            Path="[ProgramFilesFolder]Microsoft Chart Controls\Assemblies\System.Windows.Forms.DataVisualization.dll"
         /&gt;
  &lt;/Fragment&gt;
  </code></pre>