本文介绍了在垂直计算机上安装了多少次软件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在c#中有什么方法可以知道某个软件在特定计算机上安装了多少次.我可以通过wmi查询获取已安装的软件列表;
is there any way in c# to know that how many time any software get installed on the particular computer . i can get installed software list by wmi query ;
ManagementScope scope = new ManagementScope(@"\\" + strIPAddress + @"\root\cimv2");
SelectQuery query = new SelectQuery();
query.QueryString = "select * from Win32_Product";
ManagementObjectSearcher searcher = new ManagementObjectSearcher(scope, query);
ManagementObjectCollection queryCollection = searcher.Get();
foreach (ManagementObject m in queryCollection)
{
/////////////////////////////////////////
}
但我无法找到安装软件的时间.任何人都可以帮我吗.
问候,
Arshad
but i am not able to find how many time a software get installed. can any body help me out.
Regards,
Arshad
推荐答案
这篇关于在垂直计算机上安装了多少次软件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!