Click here to Skip to main content
15,910,878 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am able to the software list from this following path of the registry. But many software names are not coming from this path. How to get Last access date of a software. I have been looking for a right solution for a long time but I could not.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths



any idea Kindly share.
Posted

Similar(or Exact) question and long discussion here: Last accessed date and time of all the installed software[^]

You can interact with the answerer there if needed.


Also, look at the following link: How to Get and Set file Last Access Time and Date using System.io in c# (.net 2.0).[^]
 
Share this answer
 
v2
Comments
sacraj 26-Apr-11 5:49am    
Thanks for your help
I think your answer is for files and folders I do not want to get last access date for files and folders. I need the last access date for installed software.
Sergey Alexandrovich Kryukov 26-Apr-11 15:53pm    
Ah, that was my answer. My 5 (I cannot disavow my own answer, can I? :-)
--SA
Sandeep Mewara 27-Apr-11 0:22am    
When I found your answer, I just blindly referred it. :)
Sergey Alexandrovich Kryukov 27-Apr-11 0:30am    
:-)
Take a look at Windows Management Instrumentation WMI Tasks: Computer Software[^]

And make at WMI query with "Select * from Win32_Product"

WqlObjectQuery wqlQuery = new WqlObjectQuery("SELECT * FROM Win32_Product");
ManagementObjectSearcher searcher = new ManagementObjectSearcher(wqlQuery);
foreach (ManagementObject row in searcher.Get())
{
  object name = row["Name"];
  object version = row["Version"];
  Console.WriteLine("Name: " + name + " - Version: " + version);
}
 
Share this answer
 
v3
Comments
sacraj 26-Apr-11 5:47am    
Thanks for Helping.
What you have said is correct but I does not show all the installed software list. For example It does not show for Microsoft word,power point, Excel. I need to get all the installed software with last access date.
sacraj 26-Apr-11 5:51am    
I have also used WMI to query the installed software list. But It does not give all the installed software.
Kim Togo 26-Apr-11 6:31am    
Perhaps not all programs are installed using Microsoft Installer (MSI). Here at my computer, Microsoft Office suite is listed: Word, Excel etc.
sacraj 26-Apr-11 7:03am    
I shall again check this code on my Computer. Can not I get the list of installed software which are not installed using MSI(Microsoft Installer).
Sergey Alexandrovich Kryukov 26-Apr-11 15:54pm    
I think this is a better answer than mine (in Sandeep's reference, please see). My 5.
--SA

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