小编Moh*_*hrn的帖子

Light抱怨MSI公共属性正在使用的目录名称

我的WiX安装中有第三方库,当我运行Light.exe时会导致以下错误:

错误LGHT0204:ICE99:目录名称:时间与其中一个MSI公共属性相同,可能会导致无法预料的副作用.

我不是很擅长抑制ICE错误,重命名目录并改变第三方接缝就像一个坏主意.还有其他选择吗?

编辑:

解决了

万一别人是有similiar的问题,这是我结束了使用(我从这个博客得到它:在xsl http://installpac.wordpress.com/2012/05/07/conflict-management-in-wix/):

<?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"> 

  <xsl:template match="@*|*"> 
    <xsl:copy> 
      <xsl:apply-templates select="@*" /> 
      <xsl:apply-templates select="*" /> 
    </xsl:copy> 
  </xsl:template> 

  <xsl:template match="wix:Directory"> 
    <xsl:copy> 
        <xsl:apply-templates select="@*" /> 
        <xsl:attribute name="Id">
            <xsl:text>NameOfAThirdPartyLibraryImUsing_directory_</xsl:text>
            <xsl:value-of select="@Id"/>
        </xsl:attribute>
        <xsl:apply-templates select="node()"/>
    </xsl:copy> 
  </xsl:template> 
</xsl:transform> 
Run Code Online (Sandbox Code Playgroud)

wix

0
推荐指数
1
解决办法
629
查看次数

标签 统计

wix ×1