You can run this xslt sheet to create the ComponentRefs (with your xslt
processor of choice, I use VS2005, :-) )
I did not try it yet with WixV3.0. I changed the stylesheet tag for the
xmlns:wix attribute to match the wixv3.0 namespace but did not test it.
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:wix="http://schemas.microsoft.com/wix/2006/wi"> <!-- wix2.0 ns:
http://schemas.microsoft.com/wix/2003/01/wi -->
<xsl:output indent="no" method="xml"/>
<xsl:strip-space elements="*"/>
<xsl:template match="/wix" xml:space="default">
<xsl:apply-templates />
</xsl:template>
<xsl:template match="wix:Component" xml:space="preserve">
<xsl:element name="ComponentRef"><xsl:attribute name="Id"><xsl:value-of
select="@Id"/></xsl:attribute></xsl:element> </xsl:template>
</xsl:stylesheet>
Rene
________________________________
From: [EMAIL PROTECTED] on behalf of koawmfot
Sent: Fri 8/10/2007 16:45
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] heat switches, and other exe's
searching around i found that the -gg switch when passed to heat generates
GUIDs for each component. this is a very nice little feature, and i wonder why
it is undocumented with the /?.
i was wondering if there are other undocumented switches for heat, as well as
undocumented switches for the other wix tools.
also, specifically with heat, i would like to be able to not seperate every
componet into a fragment. when capturing large directories, it is very tedious
to add every component created to a feature, and it is not possible to create a
componentgroup when every component is in a seperate fragment. at the same
time, i was wondering if the DirectoryRef that is created for each component
could be moved to be a directory attribut of the component elements created.
in other words, instead of this:
<Fragment>
<DirectoryRef Id="bicarboc">
<Component Id="a2_2_11.cxf"
Guid="{192F8473-F096-466E-A54C-DD748E31ADA2}">
<File Id="a2_2_11.cxf" Name="a2_2_11.cxf" KeyPath="yes"
Source="c:\sf\templatedirs\bicarboc\a2_2_11.cxf" />
</Component>
</DirectoryRef>
</Fragment>
<Fragment>
<DirectoryRef Id="coordina">
<Component Id="a5member.cxf "
Guid="{5314AA6A-1F30-440B-B0EF-AA274E88ACD6}">
<File Id="a5member.cxf" Name="a5member.cxf" KeyPath="yes"
Source="c:\sf\templatedirs\coordina\a5member.cxf" />
</Component>
</DirectoryRef>
</Fragment>
<Fragment>
<DirectoryRef Id="polycarb">
<Component Id="ab3_1_0.cxf"
Guid="{45FB27BE-A664-4035-B00B-30AD8E8F2658}">
<File Id="ab3_1_0.cxf" Name="ab3_1_0.cxf" KeyPath="yes"
Source="c:\sf\templatedirs\polycarb\ab3_1_0.cxf" />
</Component>
</DirectoryRef>
</Fragment>
I was wondering if there were any switches for heat that would give me this
instead:
<Fragment>
<Component Id="a2_2_11.cxf"
Guid="{192F8473-F096-466E-A54C-DD748E31ADA2}" Directory="bicarboc">
<File Id="a2_2_11.cxf" Name="a2_2_11.cxf" KeyPath="yes"
Source="c:\sf\templatedirs\bicarboc\a2_2_11.cxf" />
</Component>
<Component Id="a5member.cxf"
Guid="{5314AA6A-1F30-440B-B0EF-AA274E88ACD6}" Directory="coordina">
<File Id="a5member.cxf " Name="a5member.cxf" KeyPath="yes"
Source="c:\sf\templatedirs\coordina\a5member.cxf" />
</Component>
<Component Id="ab3_1_0.cxf"
Guid="{45FB27BE-A664-4035-B00B-30AD8E8F2658}" Directory="polycarb">
<File Id="ab3_1_0.cxf" Name="ab3_1_0.cxf" KeyPath="yes"
Source="c:\sf\templatedirs\polycarb\ab3_1_0.cxf" />
</Component>
</Fragment>
thanks
doug
This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an intended
recipient then please promptly delete this e-mail and any attachment and all
copies and inform the sender. Thank you.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users