The –cg <groupname> command instructs Heat to harvest a given directory and include all found components in a <componentgroup> with the given name. This will ensure that, when authoring a full product, a developer can be guaranteed a static value to reference using a <compnentgroupref>. </compnentgroupref></componentgroup></groupname>
heat.exe dir C:\MyDir -srd -cg TestMe
<wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<fragment>
<componentgroup id="user-content-TestMe">
<component id="user-content-CO_BEA0A254206A075FE419AECC8F8323C3" directory="DI_5E971BF1ECC0BC11795785D90F250FC0" ...="">
<file id="user-content-FI_4273BB2732377498E74980308130C808" ...="">
</file></component></componentgroup></fragment></wix>