You can use XSLT transfroms to do that. Then on heat.exe command line add *-t MyXsl.xslt* The XSLT file should take this form:
<?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" xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl wix" > <xsl:output method="xml" indent="yes"/> <xsl:template match="@* | node()"> <xsl:copy> <xsl:apply-templates select="@* | node()"/> </xsl:copy> </xsl:template> <!-- Find my executable. --> <xsl:template match="//wix:File"> <xsl:copy> <xsl:apply-templates select="@* | node()"/> <!-- Shortcut to application - on desktop. --> <xsl:if test="contains( ./@Source, '*MY_EXE.exe*')"> <xsl:text>
</xsl:text> <wix:Shortcut Directory="*DesktopFolder*"> <xsl:attribute name="Id"> <xsl:value-of select="concat( ./@Id, 'DesktopFolder')"/> </xsl:attribute> <xsl:attribute name="Name"> <xsl:text>*My Shortcut Name*</xsl:text> </xsl:attribute> </wix:Shortcut> <xsl:text>
</xsl:text> </xsl:if> </xsl:copy> </xsl:template> </xsl:stylesheet> Nir. ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users