#17 How To: Heat - Specify a Component Group

open
nobody
None
5
2012-09-15
2009-04-24
Brian Rogers
No

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/>.

heat.exe dir C:\MyDir -srd -cg TestMe

<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Fragment>
<ComponentGroup Id="TestMe">
<Component Id="CO_BEA0A254206A075FE419AECC8F8323C3" Directory="DI_5E971BF1ECC0BC11795785D90F250FC0" ...="">
<File Id="FI_4273BB2732377498E74980308130C808" ...=""/>
</Component>

Discussion