Wix:如何卸载使用不同安装程序安装的先前安装的应用程序 [英] Wix: how to uninstall previously installed application that is installed using different installer

查看:35
本文介绍了Wix:如何卸载使用不同安装程序安装的先前安装的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设您有一个从某个地方下载的安装程序(不是 wix 安装程序).您如何知道该安装程序的 UpgradeCode 以便您可以将其填写在您准备的新安装程序的 UpgradeCode 部分?

Suppose that you have an installer (not a wix installer) that you downloaded from somewhere. How can you know UpgradeCode of that installer so that you can fill it in in the UpgradeCode section in the new installer that you prepare?

我可以以某种方式从注册表中学习吗?所以问题基本上是,如何知道计算机中安装的程序的UpgradeCode.

Can I learn it from registry somehow? So the question is basically, how to know the UpgradeCode of a program that is installed in the computer.

实际上我的问题是我的产品已经安装了另一个安装程序,我现在正在尝试将其移动到 wix 安装程序.但是,我在以前的安装程序中找不到升级代码,我想从已安装的软件中找到它.

Actually my problem is that my product has been installed with another installer and I am now trying to move it to wix installer. However, I can't find upgrade code in previous installer and I want to find it from installed software.

谢谢.

推荐答案

当我发布给 WiX 用户时:

As I posted to WiX users:

我已经通过升级从注册表中获取卸载字符串来完成此操作,其中应该有一个您可以使用的命令,因为它不是基于 MSI 的.您是否应该在 UI 序列或执行序列或两者中调用它取决于您对静默安装的要求,这意味着您需要在执行序列中静默执行,并且可能需要更改卸载命令以使其静默.

I've seen this done by having the upgrade get the uninstall string from the registry, where there should be a command you can use since it's not MSI-based. Whether you should call it in the UI sequence or the execute sequence or both depends on your requirements for silent installs, meaning that you'd need to do it silently in the execute sequence, and perhaps need to alter the uninstall command to make it silent.

如果该安装具有标准的卸载快捷方式,您可以从中获取命令,则相同的一般想法应该可行.无论哪种方式,您都只是使用 CA 来运行外部程序,或者可能是 UtilCAQuietExec 之类的东西.

The same general idea should work if that install has a standard uninstall shortcut you could get the command from. Either way, you're just using a CA to run an external program, or maybe a Util CAQuietExec kind of thing.

这篇关于Wix:如何卸载使用不同安装程序安装的先前安装的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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