蝙蝠文件程序 [英] Bat file programme

查看:53
本文介绍了蝙蝠文件程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

用于卸载具有注册表跟踪信息的应用程序的蝙蝠文件代码.

Bat file code for uninstall application with registry traces.

我尝试了以下代码:

Wmic product where "name = 'application name '" call uninstall /nointeractive. 

返回错误:

卸载-无效的别名动词.

Uninstall - invalid alias verb.

推荐答案

据我所知,没有/nointeractive 选项.

只要您具有实际的应用程序名称(我不知道您的'application name'字符串中的尾随空格是否是问题,请确保它是正确的),并且它存在于 Win32_Product (即已安装MSI的产品)下,这是我的建议:

As long as you have the actual application name, (I don't know if the trailing space in your 'application name ' string is an issue, make sure it is correct), and it exists under Win32_Product, (i.e. MSI installed products), this would be my suggestion:

Echo Y|WMIC Product Where "Name='application name'" Call Uninstall

这篇关于蝙蝠文件程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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