WIX的卸载条件 [英] Uninstallation condition for WIX

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

问题描述

对于安装,我们有一个属性 安装,我们可以在需要安装的条件下使用该属性来执行。我们是否具有与卸载类似的属性?

For installation, we have a property "Install" which we can use in conditions to execute if its undergoing installation. Do we have a similar property for Uninstallation?

推荐答案




您可以使用 REMOVE〜= ALL 检测到完全卸载

可以通过 UPGRADINGPRODUCTCODE属性

这里有一些进一步的建议和一些帮助资源:这是一个 MSI条件速查表 ,可帮助您正确了解自定义操作的复杂MSI条件。该表格对我来说看起来不错,但我尚未对其进行详细测试-只是与您自己的测试共享链接是唯一的保证。

Here is some further advice and some help resources: here is a "MSI Conditions Cheat Sheet" to help you get the complicated MSI conditions for custom actions right. The sheet looks fine to me, but I have not tested it in detail - just sharing the link with your own testing as the only guarantee.

此外,您可以签出 Stefan Kruger的 msifaq.com MSI问题以及他的主要> installsite.org 网站可获取常规部署信息。

Also, you can check out Stefan Kruger's msifaq.com for a list of common MSI questions as well as his main installsite.org site for general deployment information.

关于Wix,请查看 这个著名的wix教程 。我将链接到 Windows Installer最佳做法列表

With regards to Wix check out this well known wix tutorial. I'll throw in a link to the Windows Installer Best Practices list as well.

How to add a WiX custom action that happens only on uninstall (via MSI)?

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

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