我的目标是在我的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时,出现以下错误:
我该如何摆脱这个错误?
改变 Language="0" Language="1033"
Language="0"
Language="1033"