我的每个安装程序都使用某些临时的exes和dlls。在我的WiX项目中,我可以将它们放在二进制表中。既然它们在所有项目中共享,那么是否有可能将它们放到wixlib中呢?语法是什么。
我正在使用PropertyRef属性对属性进行类似的操作。没有对应的BinaryRef属性来处理二进制表。
发布于 2018-07-05 09:25:18
没有对应的BinaryRef属性来处理二进制表。
对于没有对应*Ref元素的元素,可以使用以下解决方法:
ComponentGroup元素(这是有效的WiX代码)。ComponentGroupRef的Fragment元素。这就牵扯到了Fragment的全部内容,而不仅仅是ComponentGroup。示例:
<Fragment>
<ComponentGroup Id="MyBinaries"/>
<Binary Id="Binary1" SourceFile="Files\Binary1.xyz"/>
<Binary Id="Binary2" SourceFile="Files\Binary2.xyz"/>
</Fragment>要从另一个MyBinaries文件引用.wxs:
<Fragment>
<ComponentGroup Id="SomeComponents">
<ComponentGroupRef Id="MyBinaries"/>
</ComponentGroup>
</Fragment>https://stackoverflow.com/questions/51143377
复制相似问题