title: "ICE38: Component installs to user profile" error for a specific component
body: <p>I am trying to write a Windows Installer script in WiX 3.6 with a per-machine and x64 architecture only setting. I have the following project structure (shortened):</p>
  
  <pre><code>&lt;Directory Id="ProgramFiles64Folder" Name="PFiles"&gt;
      &lt;Directory Id="APPLICATIONFOLDER" Name="My Company"&gt;
        &lt;Directory Id="ProductFolder" Name="My Product"&gt;
          &lt;Component Id="MainComponent" Guid="" Win64="yes" KeyPath="yes"&gt;
              ...
          &lt;/Component&gt;
          &lt;Directory Id="DataFolder" Name="Data"&gt;
            &lt;Directory Id="Machine" Name="Machine" &gt;
              &lt;Directory Id="MachinesFolder" Name="Machines"&gt;
                &lt;Component Id="Machine1" Guid="{74341536-72DF-48C3-95E8-2851D9FA8318}" Win64="yes" KeyPath="yes"&gt;
                          ...
                &lt;/Component&gt;
              &lt;/Directory&gt;
              &lt;Directory Id="TemplateFolder" Name="Template"&gt;
                &lt;Component Id="TemplateFiles" Guid="{A0D0C225-D604-4B84-971D-41687A30EC36}" Win64="yes" KeyPath="yes"&gt;
                  &lt;File Id="Template1.rsbak" Source="$(var.SolutionDir)bin\Release\File1.rsbak" /&gt;
                              ...
                &lt;/Component&gt;
              &lt;/Directory&gt;
            &lt;/Directory&gt;
          &lt;/Directory&gt;
        &lt;/Directory&gt;
      &lt;/Directory&gt;
  &lt;/Directory&gt;
  </code></pre>
  
  <p>The problem is that I receive the error <code>ICE38: Component TemplateFiles installs to user profile. It must use a registry key under HKCU as its KeyPath, not a file</code> for the TemplateFiles component when I compile. What confuses me is that I use a similar structure in another project (working), and have several components with the exact same setup in my project (not shown above). Why does this - and this only - component insist on installing to the user profile when all others get installed correctly, to Program Files?</p>