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

Moh*_*hrn 0 wix

我的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)

Yan*_*nko 6

它的唯一Id属性不应与MSI公共属性相同.这就是它抱怨的内容.

代替

<Directory Id="Time">
Run Code Online (Sandbox Code Playgroud)

写这个

<Directory Id="Dir_Time" Name="Time">
Run Code Online (Sandbox Code Playgroud)

因此,将创建正确命名的文件夹,并且Id属性的值不会与MSI公共属性冲突.你可以看看这个线程,它突出了类似的问题.