在 WIX 中,我希望可以正常安装和卸载某个功能,但在修复过程中不要触及该功能。
我找不到允许我这样做的条件。
我的尝试失败了:该功能在修复时重新安装(我不需要)或未卸载。
这是我上次尝试的示例:
<Feature Id="aFeature" Title="A Features" Level="1">
<ComponentRef Id="aComponent" />
<Condition Level="0">
<![CDATA[WixUI_InstallMode="Repair"]]>
</Condition>
</Feature>
在修复期间卸载但不重新安装的正确条件是什么?
或者我做错了什么?
最佳答案
这对我有用:
<Feature Id="aFeature" Title="A Features" Level="1">
<ComponentRef Id="aComponent" />
<Condition Level="0">
<![CDATA[REINSTALL<>""]]>
</Condition>
</Feature>
这样在修复过程中,该功能将被忽略且未被触及,但通常会被卸载
关于维克斯。如何在修复过程中不重新安装功能?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28816058/