Click here to Skip to main content
15,921,793 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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 ;
C#
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)
            {
             /////////////////////////////////////////
            }



but i am not able to find how many time a software get installed. can any body help me out.

Regards,

Arshad
Posted
Comments
[no name] 11-Aug-12 1:29am    
I do not think that you will find that information unless you are saving it yourself somewhere.
arshad alam 11-Aug-12 1:53am    
isn't it possible without saving it?
Kenneth Haugland 11-Aug-12 2:12am    
Since the computer isnt psychic, so you'll have to store the information somewere. The registry is an obvious choise :)

1 solution

Windows does not track this information so you can't get it using WMI or any other method.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900