我的目标是将 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/