【发布时间】:2016-05-13 20:25:07
【问题描述】:
我想生成一个只包含一个功能的 MSI 包。
我有一个自动生成的 wxi 文件。我无法更改此过程。
wxi 文件如下所示:
<?xml version="1.0" encoding="UTF-8" ?>
<Include>
<!-- components -->
<Feature Id="DefaultFeature" Title="Main Feature" Level="1">
<ComponentRef Id="comp0" />
<ComponentRef Id="comp1" />
<ComponentRef Id="comp2" />
<ComponentRef Id="comp3" />
<ComponentRef Id="CleanupMainApplicationFolder" />
</Feature>
</Include>
我有一个可以更改的 wxs 文件:
<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
<Product ...>
<!-- components -->
<?include bundle.wxi ?>
<UI/>
<FeatureRef Id="DefaultFeature">
<ComponentRef Id="comp999" />
</FeatureRef>
</Product>
</Wix>
当我将 wxs 编译为 MSI 包时,Light 指出此错误:
错误 LGHT0095:在产品“{...}”和产品“{...}”中找到功能“DefaultFeature”的多个主要引用。
如何更改我的 wxs 文件以将组件添加到 wxi 文件中定义的功能?
提前致谢。
【问题讨论】:
标签: java javafx deployment wix