检查应用程序是否已安装在服务器计算机中 [英] Check Application is installed or not in server machine

查看:128
本文介绍了检查应用程序是否已安装在服务器计算机中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用 C#或Vb.net 服务器机器中安装或不安装特定应用程序请帮帮我。

how I can check particular application is installed or not in Server Machine using C# or Vb.net Please help me .

推荐答案

您可以使用WMI和System.Management命名空间中的类来实现此目的。 WMI类的名称是Win32_Product。 WQL查询类似于SELECT * FROM Win32_Product。警告!运行该查询可能需要一段时间。



Google用于C#WMI查询,了解有关如何执行WMI查询的更多信息。





此外,您需要服务器上的管理员权限才能获得已安装软件的列表。
You can use WMI and the classes in the System.Management namespace to get this. The name of the WMI class is Win32_Product. The WQL query would be something like "SELECT * FROM Win32_Product". Warning! It can take quite a while to run that query.

Google for "C# WMI query" for more information on how to execute a WMI query.


Also, you need Admin priviledges on the server to get its list of installed software.


这篇关于检查应用程序是否已安装在服务器计算机中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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