Getting installed application version numbers in C#
-
Hi all! I am currently trying to get all the installed applications on a Windows XP machine and their associated version numbers. I am using the following class; mc = new ManagementClass("Win32_Product"); The ManagementClass class returns the majority of installed components on the system. There is however other components that appear when one runs 'Add/Remove Programs' in the control panel that do not appear in the object returned by the constructor above. As an example; HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ There are entries in here that are not returned in the ManagementClass presumably because they are two seperate things entirely. What classes do I need to return 'EVERYTHING' as seen by the 'Add/Remove Programs' dialog under the control panel. Obviously some applications install in different ways which cause the descrepancies I have been seeing. Any ideas?