Yeah, looks like the way to go. For the curious, I made an XSL template to do it (mostly as an excuse to learn XSL). I don't really know what I'm doing, but here's my partial solution anyway: (it generates just the raw text of the inside of the <feature> block, rather than actually modifying the original .wxs file)
-- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="xml" omit-xml-declaration="yes" indent="yes" encoding="ISO-8859-1"/> <xsl:template match="/"> <xsl:apply-templates select="//Component"/> </xsl:template> <xsl:template match="Component"> <ComponentRef Id="[EMAIL PROTECTED]" /> <xsl:text> </xsl:text> </xsl:template> </xsl:stylesheet> -- For reasons I don't remotely comprehend, it doesn't work until I've removed the <Wix xmlns="http://schemas.microsoft.com/wix/2003/01/wi"> line and replaced it with just <Wix>. Candle doesn't seem to mind. For more reasons I don't understand, I don't get any linefeeds in the output. I'm using Microsoft's MSXML 6 to do the transformation. Anyway, the following sequence (automated using Finalbuilder) does allow me to automatically keep a .wix file up to date (with the same GUID's): 1. -d c:\x\rlsout\SP4test\SP4 -s c:\testbuild\wix\SP4.wxs -t c:\testbuild\wix\SP4out.wxs -1 -n -a SourceDir 2. Text replace as described above 3. Transform XML with MSXML 4. Add line breaks and feed generated output into source file 5. Copy source files to same directory 6. Candle, light. Steve > -----Original Message----- > In the past I've used a perl script to "twaddle" the tallow output into a > form that can be used in a feature... These days I've > been breaking up my source files and using <ComponentGroup> to collect the > components in each file. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users