For getting the software names the below program is OK
ManagementObjectSearcher mos = new ManagementObjectSearcher("SELECT * FROM Win32_Product");
foreach (ManagementObject mo in mos.Get())
{
Console.WriteLine(mo["Name"]);
Console.WriteLine(mo["Version"]);
}
Console.ReadKey(true);
But what if I want to get Publisher,InstalledON,Size information of those softwares.. How can I get those?
try
mo["InstallDate"]andmo["Vendor"]– I can’t seem to find any Size but you could usemo["InstallLocation"]and add the size of its content up (for example usingDirectoryInfoanfFileInfo)