卸载从命令行MSI文件,而无需使用MSIEXEC [英] Uninstalling an MSI file from the command line without using msiexec

查看:1580
本文介绍了卸载从命令行MSI文件,而无需使用MSIEXEC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

MSIEXEC 是安装一个 MSI 计划命令提示符软件。但我发现,你可以通过只输入命令行上的MSI文件的名称安装从命令行MSI文件。

msiexec is command prompt software that installs an MSI program. But I have found that you can install an MSI file from the command line by just typing in the name of the MSI file on the command line.

但为了卸载MSI文件,看来你得叫 MSIEXEC 程序,并给它一个 / X /卸载

But in order to uninstall the MSI file, it seems you have to call the msiexec program and give it a /x or /uninstall.

我怎样才能在命令行卸载MSI无需使用 MSIEXEC 程序?

How can I uninstall an MSI from the command line without using the msiexec routine?

推荐答案

简短的回答:你不能。使用MSIEXEC / X

Short answer: you can't. Use MSIEXEC /x

龙回答:当你运行MSI文件直接在命令行中,所有发生的事情是,它运行MSIEXEC你。这个关联被存储在注册表中。你可以看到关联的一个列表(在Windows资源管理器)将工具/文件夹选项/文件类型。

Long answer: When you run the MSI file directly at the command line, all that's happening is that it runs MSIEXEC for you. This association is stored in the registry. You can see a list of associations by (in Windows Explorer) going to Tools / Folder Options / File Types.

例如,您可以运行在命令行.doc文件,以及写字板或WINWORD将其打开。

For example, you can run a .DOC file from the command line, and WordPad or WinWord will open it for you.

如果你看一下在 HKEY_CLASSES_ROOT \的.msi 注册表,你会看到.MSI文件与程序idMsi.Package有关。如果你在 HKEY_CLASSES_ROOT \ Msi.Package \壳\开放\命令,你会看到命令行视窗实际使用时,运行一个.MSI文件。

If you look in the registry under HKEY_CLASSES_ROOT\.msi, you'll see that .MSI files are associated with the ProgID "Msi.Package". If you look in HKEY_CLASSES_ROOT\Msi.Package\shell\Open\command, you'll see the command line that Windows actually uses when you "run" a .MSI file.

这篇关于卸载从命令行MSI文件,而无需使用MSIEXEC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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