If you want to omit that component completely, try the following XSL template:
<xsl:template match="wix:ComponentGroup/wix:compone...@id='cmp034A7A0245A16CFBB38E35D5 1794CF21']"> <!-- JUST DO NOTHING HERE --> </xsl:template> This should find the mentioned component and write nothing to the output. Don't forget to exclude the appropriate ComponentRef if it is referenced from anywhere. Hope this helps, -- Yan -----Original Message----- From: Markus Gaugusch [mailto:w...@gaugusch.at] Sent: Thursday, December 10, 2009 17:10 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] How to specify files in Installer package I can feel that I'm nearly there, but it doesn't work yet. This is my XSLT: <?xml version="1.0" ?> <xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:wix="http://schemas.microsoft.com/wix/2006/wi" > <!-- By default, copy all attributes and elements to the output. --> <xsl:template match="@*|*"> <xsl:copy> <xsl:apply-templates select="@*" /> <xsl:apply-templates select="*" /> </xsl:copy> </xsl:template> <!-- Override copy (do nothing) for elements with this Id, so they are omitted from the output. --> <xsl:template match="compone...@id='cmp20CFFB2FF46488AF2CD00E2C9543E202']" /> </xsl:transform> And my xml looks like that: <?xml version="1.0" encoding="utf-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <Fragment> <ComponentGroup Id="MyClient"> <Component Id="cmp034A7A0245A16CFBB38E35D51794CF21" Directory="INSTALLDIR" Guid="*"> <File ... So, do I have to specify ComponentGroup, Fragment or Wix in the xslt file? How? thanks! Markus On Dec 10, Peter Shirtcliffe <pshirtcli...@sdl.com> wrote: > You want to match the component element [with a given ID] in order to > omit it, not match the Id attribute: > > <xsl:template > match="compone...@id='cmp20CFFB2FF46488AF2CD00E2C9543E202']" /> > > Also be careful to match the exact case of the element and attribute > names. > > If it still doesnt work, check that the wix namesapce is the default > namespace. > > -----Original Message----- > From: Markus Gaugusch [mailto:w...@gaugusch.at] > Sent: 10 December 2009 14:26 > To: General discussion for Windows Installer XML toolset. > Subject: Re: [WiX-users] How to specify files in Installer package > > Hi Yan! > > I tried an example found at > http://www.mail-archive.com/wix-users@lists.sourceforge.net/msg27515.htm > l > > -- but I'm unable to get it going :( > > I want to ignore > > <Component Id="cmp20CFFB2FF46488AF2CD00E2C9543E202" > Directory="INSTALLDIR" > Guid="*"> > (which includes one file) > > I used the aforementioned example and tried with <xsl:template > match="@id[.='cmp20CFFB2FF46488AF2CD00E2C9543E202']" /> But the filter > doesn't seem to apply (my component is still in the output) > > can you help me? > > thanks, > Markus > > On Dec 10, Yan Sklyarenko <y...@sitecore.net> wrote: > >> Markus, >> >> The heat.exe has a switch -t:<transform.xsl>. If you specify this >> switch running heat, the 'transform.xsl' will be applied to the >> regular output of you heat command. The final resulting wxs file will > >> contain transformed xml. >> >> There are no special requirements for that XSL transform. >> >> Hope this helps, >> >> -- Yan > > ------------------------------------------------------------------------ > ------ > Return on Information: > Google Enterprise Search pays you back > Get the facts. > http://p.sf.net/sfu/google-dev2dev > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > SDL PLC confidential, all rights reserved. > If you are not the intended recipient of this mail SDL requests and requires that you delete it without acting upon or copying any of its contents, and we further request that you advise us. > SDL PLC is a public limited company registered in England and Wales. Registered number: 02675207. > Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK. > > > ------------------------------------------------------------------------ ------ > Return on Information: > Google Enterprise Search pays you back > Get the facts. > http://p.sf.net/sfu/google-dev2dev > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > -- __________________ /"\ Markus Gaugusch \ / ASCII Ribbon Campaign markus(at)gaugusch.at X Against HTML Mail / \ ------------------------------------------------------------------------ ------ Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users