title: WIX Heat.exe command parameter -var does not accept spaces?
body: <p>I have this WIX command that uses all invariant paths and it doesn't need a system environment (unlike this example <a href="http://weblogs.sqlteam.com/mladenp/archive/2010/02/23/WiX-3-Tutorial-Generating-filedirectory-fragments-with-Heat.exe.aspx" rel="nofollow">http://weblogs.sqlteam.com/mladenp/archive/2010/02/23/WiX-3-Tutorial-Generating-filedirectory-fragments-with-Heat.exe.aspx</a>):</p>
  
  <pre><code>"%wix%bin\heat.exe" dir "$(SolutionDir)Web\obj\$(Configuration)\Package" 
                      -cg PACKAGEFILES -gg -g1 -sreg -srd -dr DEPLOYFOLDER 
                      -var wix.PackageSource="$(SolutionDir)Web\obj\$(Configuration)\Package"
                      -out "$(SolutionDir)WebInstaller\PackageFragment.wxs"
  </code></pre>
  
  <p>It works great, except on our build server where the solution path has a space in it and this error is thrown:</p>
  
  <blockquote>
    <p>heat.exe error HEAT5057: The switch '-var' does not allow the spaces from the value. Please remove the spaces in from the value: wix.PackageSource=C:\Build\Builds 1\26e27895ae75b7cb\CADPortal\src\trunk\Web\obj\Debug\Package</p>
  </blockquote>
  
  <p>I can't change the path and it shouldn't be necessary anyway in my opinion.</p>
  
  <p>My question is:
  How do I solve this? (I don't even get why WIX is making trouble over a quoted path/string var with a space)</p>