title: unable to get Wix heat.exe working
body: <p>i am currently working with wix in combination with visual studio 2013. bud there is something i just dont seem to get working. i am building an installer (.MSI) which means i need to add files to it, of course i dont want to do it al by hand so i am trying to use heat.exe for it bud was not succesful up to this moment.</p>
  
  <p>i have tried the following:
  i made a system variable that points to the location of the files.
  i put that system variable in the command as described in the Wix documentation:</p>
  
  <pre><code>heat dir ".\MySystemVariableName" -gg -sfrag -template:fragment -out directory.wxs
  </code></pre>
  
  <p>i inserted this command in the pre-build command line, also i selected suppress ICE validation.
  when i build the project it returns error 9009, i couldnt figure out why or what the problem was so i followed a tutorial on youtube.</p>
  
  <p>in that tutorial another command was used:</p>
  
  <pre><code>“$(WIX)bin\heat.exe” dir “$(SuperFormFilesDir)” -cg SuperFormFiles -gg -scom -sreg -sfrag -srd -dr INSTALLLOCATION -var env.SuperFormFilesDir -out “$(ProjectDir)Fragments\FilesFragment.wxs”
  </code></pre>
  
  <p>in the video it was stripped down to this:</p>
  
  <pre><code> “$(WIX)bin\heat.exe” dir “$(MySystemVariableName)” -cg MySystemVariableName -gg -scom -sreg -sfrag -srd -out “$(ProjectDir)\FilesFragment.wxs”
  </code></pre>
  
  <p>when i build the project with these changes it returns two errors:</p>
  
  <ol>
  <li>startindex is not allowed to be bigger than the lengt of the
  character-array.</li>
  <li>the command "commando..." exited with code 1.</li>
  </ol>
  
  <p>the first error is a mystery to me and the second is an error that has a huge ammount of potential problem that could cause this error.</p>
  
  <p>i am realy struggeling with it, my knowledge of Wix is almost 0 since i am using it for the first time and my program skills are by far not sufficient to solve it on my own.</p>
  
  <p><a href="https://www.youtube.com/watch?v=rTctUffErjs" rel="nofollow">link</a> to the video for the people who are interested.</p>
  
  <p>thanks in advance.</p>