title: WiX Check if file exists
body: <p>I cant get this search to work. What is wrong here?</p>
  
  <pre><code>&lt;Property Id="HASCONFIGFILE"&gt;
      &lt;DirectorySearch Id="ConfigFile" Path="C:\ProgramData\Custom"&gt;
        &lt;FileSearch Id="ConfigFileSearch" Name="Config.xml" /&gt;
      &lt;/DirectorySearch&gt;
    &lt;/Property&gt;
  </code></pre>
  
  <p>and here is my condition:</p>
  
  <pre><code>&lt;Publish Dialog="InstallDirDlg" Control="Next" Event="NewDialog" Value="ConfigPageTwo" Order="4"&gt;&lt;![CDATA[NOT HASCONFIGFILE]]&gt;&lt;/Publish&gt;
  &lt;Publish Dialog="InstallDirDlg" Control="Next" Event="NewDialog" Value="ConfigPage" Order="5"&gt;1&lt;/Publish&gt;
  </code></pre>
  
  <p>I get everytime to "ConfigPage" even if I remove the "NOT".</p>
  
  <p>Edit:
  Even with "<code>NOT HASCONFIGFILE OR HASCONFIGFILE</code>" it is still false.
  <br></p>