如何使用批处理文件卸载软件

Ale*_*r G 4 windows powershell batch-file uninstall wmi

我想通过调用bat文件来卸载软件。它必须是自动的,在卸载过程中无需输入任何参数。如何制作可以按名称卸载软件的bat文件?

PS:我知道使用 WMI 的完美方法,但它需要用户输入:

WMIC
product where name="software" call uninstall
Run Code Online (Sandbox Code Playgroud)

Joh*_*nik 7

我认为 WMIC 命令可以从一行运行,这应该更容易添加到批处理文件中。并且通过添加/nointeractive那么它也应该禁用提示。尝试这样的事情:

wmic product where name="software" call uninstall /nointeractive
Run Code Online (Sandbox Code Playgroud)