build: use WIX Heat to harvest samples and data for building the windows installer
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
<?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="http://schemas.microsoft.com/wix/2006/wi"
|
||||
exclude-result-prefixes="wix">
|
||||
|
||||
<xsl:output method="xml" encoding="UTF-8" indent="yes" />
|
||||
|
||||
<xsl:template match="wix:Wix">
|
||||
<xsl:copy>
|
||||
<!-- The following enters the directive for adding the config.wxi include file to the dynamically generated file -->
|
||||
<!--xsl:processing-instruction name="include">$(sys.CURRENTDIR)wix\config.wxi</xsl:processing-instruction-->
|
||||
<xsl:apply-templates select="@*" />
|
||||
<xsl:apply-templates />
|
||||
</xsl:copy>
|
||||
</xsl:template>
|
||||
|
||||
<!-- ### Adding the Win64-attribute to all Components -->
|
||||
<xsl:template match="wix:Component">
|
||||
|
||||
<xsl:copy>
|
||||
<xsl:apply-templates select="@*" />
|
||||
<!-- Adding the Win64-attribute as we have a x64 application -->
|
||||
<xsl:attribute name="Win64">$(var.Win64)</xsl:attribute>
|
||||
|
||||
<!-- Now take the rest of the inner tag -->
|
||||
<xsl:apply-templates select="node()" />
|
||||
</xsl:copy>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="@*|node()">
|
||||
<xsl:copy>
|
||||
<xsl:apply-templates select="@*|node()" />
|
||||
</xsl:copy>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
||||
Reference in New Issue
Block a user