在使用 WiX 安装期间卸载其他产品 [英] Uninstalling another product during install using WiX

查看:20
本文介绍了在使用 WiX 安装期间卸载其他产品的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望能够在安装我的 MSI 文件时删除另一个应用程序.目前,我在 WiX 中有以下内容:

I want to be able to remove another application as part of the install of my MSI file. Currently, I have the following in WiX:

<Upgrade Id="{586A589B-D6D5-48D3-9B6D-571EF230ED6A}">
    <UpgradeVersion Minimum="$(var.ProductVersion)"
                    Property="NEWERPRODUCTFOUND"
                    OnlyDetect="yes"
                    IncludeMinimum="yes" />
    <UpgradeVersion Minimum="1.0.0"
                    Maximum="$(var.ProductVersion)"
                    Property="PREVIOUSVERSIONSINSTALLED"
                    IncludeMinimum="yes" />
</Upgrade>

<Upgrade Id="{71F6B5D5-8CB9-48C9-B359-4BA22D5ADAF3}">
    <UpgradeVersion Minimum="1.0.0.0"
                    Maximum="3.5.3"
                    Property="OLDAPPFOUND"
                    IncludeMinimum="yes"
                    IncludeMaximum="yes"/>
</Upgrade>

第一个升级部分是升级我当前的 MSI 文件(这有效).第二部分是我试图用来删除其他应用程序的内容(这不是).当前的 MSI 文件和我试图删除的文件都安装在每台机器的上下文中,所以我不明白为什么这不起作用.如何解决这个问题?

The first upgrade section is what upgrades my current MSI file (and this works). The second part is what I am trying to use to remove the other application (and this doesn't). Both the current MSI file and the one I am trying to remove both install in the per-machine context, so I cannot understand why this doesn't work. How can this problem be fixed?

推荐答案

详细的日志文件应指明升级元素正在检测哪些产品.从那里应该可以追踪您创作中的错误.

A verbose log file should indicate what products are being detected by the Upgrade elements. From there it should be possible to track down the bug in your authoring.

这篇关于在使用 WiX 安装期间卸载其他产品的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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