是否有适用于 Windows 的卸载程序批处理? [英] Is there Uninstall a program batch for windows?

查看:20
本文介绍了是否有适用于 Windows 的卸载程序批处理?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有几个程序要从我的计算机上卸载(Windows 7 64 位).

I have several programs I want to uninstall from my computer (Windows 7 64bit).

是否有批处理脚本可以帮助我做到这一点?还是我需要从控制面板一一进行?

Is there a batchscript that can help me do it? or I need to do it one by one from Control Panel?

如果没有 Windows 7,那么 XP 中是否有类似的东西?

If there isn't for Windows 7, is there something like this in XP?

谢谢,多尔.

推荐答案

据我所知,在 cmd 中并没有真正的 uninstall 命令.但是,您可以查询此 reg 键

There isn't really an uninstall command kind of thing in cmd that I know of. You could however query this reg key

HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionUninstall

(如果您使用的是 64 位计算机,可能还需要检查 HKEY_LOCAL_MACHINESOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionUninstall)

(might also need to check HKEY_LOCAL_MACHINESOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionUninstall if you're on a 64-bit machine)

找到您要卸载的程序.每个都有一个 UninstallString 值,它将告诉您程序卸载程序文件的路径,然后您可以通过调用它的完整路径和文件名来执行该文件.

to find the program you want to uninstall. Each one will have an UninstallString value which will tell you the path to the programs uninstaller file which you can then execute by calling it's full path and filename.

如果卸载程序恰好是您可以使用的 msi

If the uninstaller happens to be an msi you can use

msiexec/uninstall/x 以静默方式卸载它.我认为这与批处理所能做的差不多.

msiexec /uninstall /x to silently uninstall it. This is about as much as you can do with batch I think.

希望这会有所帮助!

这篇关于是否有适用于 Windows 的卸载程序批处理?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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