你如何卸载 wix 安装程序中的另一个程序? [英] How do you uninstall another program in wix installer?
问题描述
我丢失了旧安装程序的 GUID.我设法使用 Orca 获得了升级 ID,但它仍然没有从程序和功能列表中删除旧版本.如何用全新的 msi/bootstrapper 卸载旧的 msi/bootstrapper?
I have lost the GUID's for my old installer. I managed to get the upgrade id using Orca but it still does not remove the old version from the programs and features list. How can I uninstall an old msi/bootstrapper with a completely new one?
推荐答案
如果您有要卸载的 MSI(即不是引导程序),那么您应该可以使用 WIX
元素,通过在那里指定它:
If you have a MSI to uninstall (i.e. not a bootstrapper) then you should be able to uninstall it with WIX <Upgrade>
element, by specifying it there like that:
<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is installed." />
<Upgrade Id="{YOUR-OTHER-STUFF-GUID-HERE}">
<UpgradeVersion OnlyDetect="no" Property="OTHER_STUFF_FOUND" Minimum="0.0.0" />
</Upgrade>
如果您要卸载某些 EXE,而不是 MSI,那么 AFAIK 只有自定义操作才是解决方案(只需使用自定义操作执行卸载行).
If you have some EXE to uninstall, not MSI, then AFAIK only a custom action is a solution (just execute the uninstall line using custom action).
这篇关于你如何卸载 wix 安装程序中的另一个程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!