commandline or msbuild?

On commandline you can add -gg to generate guid's when heat is run, or -ag
to use "*" instead.
With the msbuild task I use this: GenerateGuidsNow="true" to generate them.

I use msbuild, and have heat setup like this:
<HeatDirectory
      Directory="..\target\deployable\LocationLookupService"
      SuppressRegistry="true"
      SuppressCom="true"
      SuppressFragments="true"
      SuppressRootDirectory="true"
      DirectoryRefId="APPLICATIONROOTDIRECTORY"
      GenerateGuidsNow="true"
      OutputFile="..\target\setup-tmp\FileList.wxs"
      ComponentGroupName="cgFilesToInstall"
      PreprocessorVariable="var.SourceRootFolder"
      ToolPath="$(WixToolPath)" />


which gives me a file like this:
<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>
    <Fragment>
        <DirectoryRef Id="APPLICATIONROOTDIRECTORY">
        </ComponentGroup>
    </Fragment>
</Wix>            <Component Id="cmp6536A841A4F672C400A1F384EB8782EE"
Guid="{4D1D06E8-B643-41BC-8FEB-D25EDE6EEFC1}">
                <File Id="fil82BD34935F392BA6B4153F2E64FED867" KeyPath="yes"
Source="$(var.SourceRootFolder)\Global.asax" />
            </Component>
        </DirectoryRef>
    </Fragment>
    <Fragment>
        <ComponentGroup Id="cgFilesToInstall">
            <ComponentRef Id="cmp6536A841A4F672C400A1F384EB8782EE" />
        </ComponentGroup>
    </Fragment>
</Wix>

In the handcreated wxs file I reference APPLICATIONROOTDIRECTORY on an
Directory element, and i reference cgFilesToInstall in an Feature Element.

Probably other ways to do this also, but this works for me.



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-to-allow-autogenerated-ComponentGroup-to-autogenerate-Guids-tp7595750p7595751.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to