简体   繁体   English

如何从 Installshield 卸载产品

[英]How to uninstall a product from Installshield

I am having a 3rd party software in my machine.我的机器中有一个 3rd 方软件。 Let the name be Temp.msi将名称设为 Temp.msi

Now I need to uninstall this software when I am installing my setup (setup.exe).现在,我需要在安装安装程序 (setup.exe) 时卸载此软件。

It should not ask for any prompt, is there any way in installshield to do that?它不应该要求任何提示,在 installshield 中有没有办法做到这一点?

If you have the msi which was used to install the software, You can create a custom action that performs silent uninstall of that product by using:如果您有用于安装软件的 msi,您可以创建一个自定义操作,通过使用以下命令执行该产品的静默卸载:

msiexec /uninstall <msi file> /quiet

(or, for Windows XP/2003: /x <msi file> /qn ) (或者,对于 Windows XP/2003: /x <msi file> /qn

If you don't have the original msi, you need to know, or figure out, the Product Code of that software and use如果您没有原始的 msi,则需要知道或弄清楚该软件的产品代码并使用

msiexec /uninstall <product code> /quiet

Figuring out the product code can be done in several ways, a lot of information about it is available, such as here .找出产品代码可以通过多种方式完成,有很多关于它的信息可用,例如这里

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM