PS:我知道使用WMI的完美方法,但它需要用户输入:
WMIC product where name="software" call uninstall
wmic product where name="software" call uninstall /nointeractive