wix - 出现错误 : Unable to open merge module '...msm' . 检查以确保模块语言正确

标签 wix merge-module

我的目标是将 OPC COM ProxyStub MergeModule (x64) 包含在我的 msi 中。我正在使用 WiX。我尝试遵循 How To: Install the Visual C++ Redistributable with your installer 的示例代码.

这是我的 Product.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 时,出现以下错误:

Unable to open merge module 'OPC COM ProxyStub MergeModule (x64).msm'. Check to make sure the module language is correct. 'The language of this installation package is not supported by your system. (Exception from HRESULT: 0x80070657)'

如何消除该错误?

最佳答案

Language="0" 更改为 Language="1033" 消除了错误。我不确定这是否正确。

关于wix - 出现错误 : Unable to open merge module '...msm' . 检查以确保模块语言正确,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46476842/

相关文章:

WiX - 在安装时设置合并模块目录?

visual-studio-2012 - InstallShield 提供 ISEXP : error : -5008 when building setup project in VS 2012

windows-installer - 合并模块如何升级?

installation - 使用高级安装程序合并模块

xml - 在 Wix 中指定带有 heat 的文件 ID

.net - 为 Wix 安装程序构建项目

wix - torch.exe 在 wixpdb 文件中比较没有版本的文件

c# - 在 msi 中启用 CustomAction 表

Wix\heat.exe 奇怪的输出