2017-09-28 19 views
0

我的目标是在我的msi中包含OPC COM ProxyStub MergeModule(x64)。我正在使用WiX。我试着按照How To: Install the Visual C++ Redistributable with your installer的示例代码。获取错误:无法打开合并模块'... msm'。检查以确保模块语言正确

这里是我的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)'

如何摆脱错误的?

回答

0

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

相关问题