title: WiX 3.11.1 -- error LGHT0103 : The system cannot find the file
body: <p>WiX 3.11.1 on Windows 10 Pro Version 1703 64-bit. NOT using Visual Studio. Using simple text files as follows.</p>
  
  <p>Here is a test case of the situation I am finding.</p>
  
  <p>myapp.wxs is this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
       xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension"&gt;
  
      &lt;Product Id="*"
               Name="MyApp"
               Language="1033"
               Version="1.0.0.0"
               Manufacturer="Me"
               UpgradeCode="PUT-GUID-HERE"&gt;
  
          &lt;Package InstallerVersion="301"
                   Compressed="yes"
                   InstallScope="perMachine"
                   Manufacturer="Me"
                   Description="My App"
                   Keywords=".NET,Installer,MSI" /&gt;
  
          &lt;MediaTemplate EmbedCab="yes" /&gt;
          &lt;UIRef Id="WixUI_Minimal" /&gt;
          &lt;UIRef Id="WixUI_ErrorProgressText" /&gt;
  
          &lt;!-- ****************************************** --&gt;
          &lt;WixVariable Id="WixUIDialogBmp"
                       Value="[CMP_Refresh_file]" /&gt;
          &lt;!-- ****************************************** --&gt;
  
          &lt;Feature Id="MyFeature"
                   Title="MyApp Feature"
                   Description="Installs MyApp"
                   Level="1"&gt;
          &lt;/Feature&gt;
      &lt;/Product&gt;
  
      &lt;Fragment&gt;
          &lt;Directory Id="TARGETDIR" Name="SourceDir"&gt;
              &lt;Directory Id="TestFolder" Name="TESTfolder" /&gt;
          &lt;/Directory&gt;
          &lt;Component Id="CMP_Refresh_file" Guid="*" Directory="TESTfolder"&gt;
              &lt;File Id="FILE_RefreshPNG" Source= "Refresh.png" KeyPath="yes" /&gt;
          &lt;/Component&gt;
      &lt;/Fragment&gt;
  &lt;/Wix&gt;
  </code></pre>
  
  <p>myapp.bat is:</p>
  
  <pre><code>"C:\Program Files (x86)\WiX Toolset v3.11\bin\candle.exe" myapp.wxs
  "C:\Program Files (x86)\WiX Toolset v3.11\bin\light.exe"  myapp.wixobj -ext WixUIExtension -ext WixUtilExtension
  @pause
  </code></pre>
  
  <p>When I run the .bat file, it cannot find the CMP_Refresh_file (error LGHT0103 : The system cannot find the file). The folder TESTfolder is a direct sub-folder of the folder in which the .wxs file exists.</p>
  
  <p>Substituting the full file path solves the issue. BUT that is not what I want as I will have a multitude of files and folders. (Also, if I put the file in the same folder as the .wxs file, of course, it finds it.)</p>
  
  <p>I suspect it is purely a syntactic issue caused by my ignorance. In any case, I have tried endless variations of syntax for the Value of WixUIDialogBmp without joy (except the full name).</p>
  
  <p>Help to resolve <strong>very</strong> much appreciated. Thanks!</p>