在Inno Setup卸载过程中卸载MSI [英] Uninstall an MSI during during Inno Setup uninstall

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

问题描述

我安装了 MSI 文件作为Inno Setup安装脚本的一部分.有没有办法在我的程序的卸载过程中也将其卸载?

I install an MSI file as part of my Inno Setup install script. Is there a way to also uninstall it as part of the uninstall process for my program?

推荐答案

最简单的方法是了解该MSI软件包的GUID,

The easiest way is to learn what is the GUID of that MSI package,

http://msdn.microsoft.com/en-us/library/aa370568(v=vs.85).aspx

安装后,它将在'SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Uninstall (或其WOW64版本)下注册.

as after installation, it will be registered under 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall (or its WOW64 one).

一旦知道了GUID,就可以通过调用

Once you know the GUID, it can be uninstalled by calling

MsiExec.exe/X {A879B90E-B62C-4DA4-9C3F-79A1A6CFAAF9}

{A879B90E-B62C-4DA4-9C3F-79A1A6CFAAF9}是"Microsoft ASP.NET网页-Visual Studio 2010工具"的示例.

Here {A879B90E-B62C-4DA4-9C3F-79A1A6CFAAF9} is an example for "Microsoft ASP.NET Web Pages - Visual Studio 2010 Tools".

这篇关于在Inno Setup卸载过程中卸载MSI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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