 <p>If I understood it correctly you want to reference the fragment created by heat (<code>$(TargetDir)$(ProjectName).wxs</code>) in your generic WiX source file?<br> If this is the case you just have to add a <code>ComponentGroupRef</code>-tag below your <code>Feature</code>-element (instead of a <code>ComponentRef</code>-element you would use normally). As <code>Id</code> for the elemenet you have to use the name of the <code>ComponentGroup</code> that you used in the heat-commandline, <code>harvestedComponents</code> in your example. E.g.</p> <pre><code>&lt;Feature Id="MyFeature" ...&gt; ... &lt;ComponentRef Id="aNormalComponentFromTheCurrentFile" ... /&gt; ... &lt;ComponentGroupRef Id="harvestedComponents" /&gt; &lt;/Feature&gt; </code></pre> <p>Or did I miss the point?</p>