WIX 烧录卸载? [英] WIX Burn Uninstallation?

查看:27
本文介绍了WIX 烧录卸载?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 WIX_bundle (V1.0.0.0),它安装了该版本 (5.0.0.0) 的 4 个第三方 MSI.现在我的第三方 MSI 的新版本已经更新 (6.0.0.0).我使用 (v2.0.0.0) 创建了一个新版本的 WIX_Bundle,并且两个 WIX 包都具有相同的升级代码.我想要发生的是 WIX_Bundle 的新版本应该卸载以前的版本(v1.0.0.0 和 4 个 MSI)并安装新版本(v2.0.0.0 和新的 4 个 MSI).

I have a WIX_bundle (V1.0.0.0) which installs 4 third party MSI's of the version (5.0.0.0). Now the new version of my third party MSI's got updated (6.0.0.0). I created a new version of the WIX_Bundle with (v2.0.0.0) and both the WIX bundles have the same upgrade code. What I want to happen is that the new version of the WIX_Bundle should uninstall the previous version (v1.0.0.0 along with the 4 MSI's) and install the new version (v2.0.0.0 with new 4 MSI's).

但是当我尝试安装 WIX_BUndle V2.0.0.0 时,它会尝试安装新版本,而不是卸载以前的版本.我在这里遗漏了什么吗?

But when I try to install the WIX_BUndle V2.0.0.0, it tries to install the new version and is not doing an uninstall of the previous version. Am I missing something here?

我也添加了 RelatedBundle Action="Upgrade" Id="$(var.UpgradeCode)".但没有什么是做的伎俩?

I added the RelatedBundle Action="Upgrade" Id="$(var.UpgradeCode)" too. But nothing is doing the trick?

我的预期是否应该在新版本安装之前进行卸载?我希望卸载 4 个以前的 MSI,无论它们是否有升级,然后在新的 WIX_Bundle (v2.0.0.0) 中安装新版本.我可以强迫这种情况发生吗?

Is my expectation correct that the uninstallation should happen before the new version installs? I want the uninstallation of the 4 previous MSI's to happen regardless if they have an upgrade or not and then install the new version in the new WIX_Bundle (v2.0.0.0). Can I force this to happen?

推荐答案

我错了.WIX 捆绑包处理捆绑包级别和内部 MSI 级别的升级.所以一切都很好.当我从 v1.0.0.0 升级到 v2.0.0.0 时,它将卸载所有 4 个 MSI 的 5.0.0.0 并正确安装 6.0.0.0 版本(前提是您的 MSI 应该升级).

I was wrong. The WIX bundle handles upgrades BOTH at the bundle level and also at the internal MSI level. So everything is good. when I go from v1.0.0.0 to v2.0.0.0, it will uninstall the 5.0.0.0 of all the 4 MSI's and install the 6.0.0.0 version correctly (provided your MSI's are supposed to upgrade).

这篇关于WIX 烧录卸载?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆