title: WiX Heat.exe Win64 Components - Win64="yes"
body: <p>I'm building an installer at the moment that targets just 64bit machines.  Part of the process involves running <code>Heat.exe</code> to produce a <code>Fragment</code> elements containing part of the deployed application.</p>
  
  <p>The problem is the components that are produced by heat produce ICE:80 errors which is WiX complaining that the components target 32bit systems and my installer is trying to load these into:</p>
  
  <pre><code>&lt;Directory Id="ProgramFiles64Folder"&gt;
  </code></pre>
  
  <p>Looking at the documentation there is a <code>-platform</code> switch that can be used to tell <code>Heat</code> that we are targeting an x64 environment however there is no clue in the documentation on how to use this switch.  I've tried:</p>
  
  <pre><code>-platform=x64
  
  -platform=Win64
  </code></pre>
  
  <p>Nothing seems to effect the output in order to set the <code>Win64</code> attribute on the generated components.  Has anyone figured this out?  Or am I barking up the wrong tree entirely?</p>
  
  <p>If I manually edit the harvested components to add <code>Win64="yes"</code> the ICE error goes away.</p>
  
  <p>In my <code>&lt;Product&gt;</code> element I have <code>Platform="x64"</code> as I understand it <code>candle</code> should take this and work out that the components should be set to x64 by default but this isn't working it seems.</p>
  
  <p>Very confused.</p>