title: Unresolved reference to symbol in WiX (LGHT0094) (No illegal characters?)
body: <p>I have searched here for answers but as every case seems to be unique and so far no answers helped me, I decided to post my own. For some reason I am getting the following error about the following code. I can't seem to find anything wrong with it. It has no illegal characters as far as I can see. I've tried with and without the &quot; and it doesn't make a difference. The line specifically referenced in the error is the verb line.</p>
  
  <p><strong>Error:</strong></p>
  
  <pre><code>C:\Users\kylec\Desktop\SampleFirst\SampleFirst.wxs(25) : error LGHT0094 : 
  Unresolved reference to symbol 'File:Viewer.exe' in section 
  'Product:{00000000-0000-0000-0000000000000000}'.
  </code></pre>
  
  <p><strong>Code:</strong></p>
  
  <pre><code>&lt;?xml version='1.0' encoding='windows-1252'?&gt;
  &lt;Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'&gt;
    &lt;Product Name='Viewer 1.0' Id='PUT-GUID-HERE' UpgradeCode='PUT-GUID-HERE'
      Language='1033' Codepage='1252' Version='1.0.0' Manufacturer='Direct'&gt;
      &lt;Package Id='*' Keywords='Installer' Description="Installer"
        Comments='Installer is a registered trademark of Direct' 
        Manufacturer='Direct' InstallerVersion='100' Languages='1033' 
        Compressed='yes' SummaryCodepage='1252' /&gt;
  
      &lt;Media Id='1' Cabinet='Sample.cab' EmbedCab='yes' DiskPrompt="CD-ROM #1" /&gt;
      &lt;Property Id='DiskPrompt' Value="Installation [1]" /&gt;
  
      &lt;Directory Id='TARGETDIR' Name='SourceDir'&gt;
        &lt;Directory Id='ProgramFilesFolder' Name='PFiles'&gt;
          &lt;Directory Id='DataMotionDirect' Name='DMD'&gt;
            &lt;Directory Id='INSTALLDIR' Name='Viewer'&gt;
  
             &lt;Component Id='MainExecutable' Guid='*'&gt;
                 &lt;Shortcut Id="startmenuViewer" Directory="ProgramMenuDir" 
                           Name="Viewer" WorkingDirectory='INSTALLDIR' 
                           Icon="Viewer.exe" IconIndex="0" Advertise="yes" /&gt;
                  &lt;Shortcut Id="desktopViewer" Directory="DesktopFolder" 
                            Name="Viewer" WorkingDirectory='INSTALLDIR' 
                            Icon="Viewer.exe" IconIndex="0" Advertise="yes" /&gt;
  
                &lt;File Id='EXE' Name='Viewer.exe' DiskId='1' 
                      Source='Viewer.exe' KeyPath='yes'&gt;
                &lt;/File&gt;
          &lt;ProgId Id="DMDCCDAV" Description="Viewer"&gt;
            &lt;Extension Id="xml" &gt;
              &lt;Verb Id="open" Argument="&amp;quot;%1&amp;quot;" TargetFile="Viewer.exe" /&gt;
            &lt;/Extension&gt;
          &lt;/ProgId&gt;
              &lt;/Component&gt;
  
            &lt;/Directory&gt;
          &lt;/Directory&gt;
        &lt;/Directory&gt;
  
        &lt;Directory Id="ProgramMenuFolder" Name="Programs"&gt;
         &lt;Directory Id="ProgramMenuDir" Name="Viewer"&gt;
          &lt;Component Id="ProgramMenuDir" Guid="*"&gt;
           &lt;RemoveFolder Id='ProgramMenuDir' On='uninstall' /&gt;
           &lt;RegistryValue Root='HKCU' Key='Software\[Manufacturer]\[ProductName]' 
                          Type='string' Value='' KeyPath='yes' /&gt;
          &lt;/Component&gt;
         &lt;/Directory&gt;
        &lt;/Directory&gt;
  
        &lt;Directory Id="DesktopFolder" Name="Desktop" /&gt;
      &lt;/Directory&gt;
  
      &lt;Feature Id='Complete' Level='1'&gt;
        &lt;ComponentRef Id='MainExecutable' /&gt;
        &lt;ComponentRef Id='ProgramMenuDir' /&gt;
      &lt;/Feature&gt;
  
      &lt;Icon Id="Viewer.exe" SourceFile="Viewer.exe" /&gt;
  
    &lt;/Product&gt;
  &lt;/Wix&gt;
  </code></pre>