Getting error: Unable to open merge module '...msm'. Check to make sure the module language is correct
Getting error: Unable to open merge module '...msm'. Check to make sure the module language is correct
我的目标是在我的 msi 中包含 OPC COM ProxyStub MergeModule (x64)。我正在使用 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"
消除了错误。我不确定这是否正确。
我的目标是在我的 msi 中包含 OPC COM ProxyStub MergeModule (x64)。我正在使用 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"
消除了错误。我不确定这是否正确。