代码之家  ›  专栏  ›  技术社区  ›  Jesus is Lord

获取错误:无法打开合并模块“。。。msm’。检查以确保模块语言正确

  •  2
  • Jesus is Lord  · 技术社区  · 7 年前

    我的目标是在我的msi中包括OPC COM代理模块(x64)。我正在使用WiX。我试着遵循的示例代码 How To: Install the Visual C++ Redistributable with your installer .

    这是我的产品。wxs:

    <?xml version="1.0" encoding="utf-8"?>
    <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" ...>
      <Product Id="*" Name="..." Language="1033" Version="..." Manufacturer="..." UpgradeCode="...">
        ...  
        <DirectoryRef Id="TARGETDIR">
            <Merge Id="OPCRedist" SourceFile="OPC COM ProxyStub MergeModule (x64).msm" DiskId="1" Language="0"/>
        </DirectoryRef>
        <Feature Id="OPCRedist" Title="OPC Core Components" AllowAdvertise="no" Display="hidden" Level="1">
            <MergeRef Id="OPCRedist"/>
        </Feature>
      </Product>
      ...
    </Wix>
    

    编译wixproj时,出现以下错误:

    我该如何摆脱这个错误?

    1 回复  |  直到 7 年前
        1
  •  2
  •   Jesus is Lord    7 年前

    改变 Language="0" Language="1033"

    推荐文章