wix 生成文件目录列表
heat dir "C:\Users\kokbi\Source\Repos\检测软件" -gg -dr MergeRedirectFolder -ke -sfrag -cg Custom -var var.SourceDir -out detectorMMcustom.wxs
-t xx.xsl 可以替换生成的tag
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet
version="1.0"
xmlns="http://schemas.microsoft.com/wix/2006/wi"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:wix="http://schemas.microsoft.com/wix/2006/wi"
xmlns:str="http://xsltsl.org/string"
exclude-result-prefixes="wix str"
>
<xsl:output
encoding="utf-8"
method="xml"
version="1.0"
indent="yes"
/>
<xsl:template match='wix:Component[contains(wix:File/@Source, "dv_detector_ui.exe")]'>
<Component >
<xsl:attribute name="Id">
<xsl:value-of select="@Id" />
</xsl:attribute>
<xsl:attribute name="Guid">
<xsl:value-of select="@Guid" />
</xsl:attribute>
<File>
<xsl:attribute name="Id">
<xsl:value-of select="wix:File/@Id" />
</xsl:attribute>
<xsl:attribute name="KeyPath">
<xsl:value-of select="wix:File/@KeyPath" />
</xsl:attribute>
<xsl:attribute name="Source">
<xsl:value-of select="wix:File/@Source" />
</xsl:attribute>
<Element property1="1" property2="2" />
</File>
</Component>
</xsl:template>
<!-- identity template -->
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match='/'>
<xsl:comment>*** DO NOT EDIT: Generated by heat.exe; transformed by ProgComponentGroup.xsl</xsl:comment>
<xsl:apply-templates select="@*|node()"/>
</xsl:template>
</xsl:stylesheet>

浙公网安备 33010602011771号