WIX。维修期间如何不重新安装功能? [英] WIX. How to not reinstall a feature during repair?
本文介绍了WIX。维修期间如何不重新安装功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在WIX中,我希望可以正常安装和卸载某个功能,但在修复过程中不要触摸它。
In WIX I'd like a feature to be installed and uninstalled normally but not to be touched during repair.
我找不到能使我做到的条件。
我的尝试失败了:在修复时重新安装了该功能(不需要什么)或未卸载。
I was not able to find a condition which would allow me to do this. My attempts has failed: the feature is reinstalled on repair (what I do not need) or is not uninstalled.
这是我上次尝试的示例:
This is a sample that I tried last:
<Feature Id="aFeature" Title="A Features" Level="1">
<ComponentRef Id="aComponent" />
<Condition Level="0">
<![CDATA[WixUI_InstallMode="Repair"]]>
</Condition>
</Feature>
什么是正确的卸载条件,而不是在修复过程中重新安装?
还是我做错了什么?
What is the right condition to uninstall but not re-install during repair? Or what did I do wrong?
推荐答案
这对我有用:
<Feature Id="aFeature" Title="A Features" Level="1">
<ComponentRef Id="aComponent" />
<Condition Level="0">
<![CDATA[REINSTALL<>""]]>
</Condition>
</Feature>
这样,在修复过程中,该功能将被忽略且不会被触摸,但通常会被卸载
This way during Repair the feature is ignored and not touched, but normally uninstalled
这篇关于WIX。维修期间如何不重新安装功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文