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?
Matt Fishbeck
Posts
-
Getting installed application version numbers in C# -
Reporting of operating systemHello all! A silly question concerning the OSVersion. When I call the following method it returns the platform as the following; "Microsoft Windows NT 5.1.2600 Service Pack 2" Despite under the control panel it is listed as; "Microsoft Windows XP Professional Version 2002 Service Pack 2" Is there anything that maps one from the other? Many thanks!
-
Getting application version numbers in C#I am running a dual core 2.3g pentium 2 with 2 gb of ram. See below for a list for the output of the program - note the elapsed time; It is strange because when I go to contorl panel - add/remove programs it is allot faster - even for the first time after boot. Perhaps windows in caching the entries where as this method probably reads through the registry in a manual fashion....See the output of the program below. <<< Querying registry for installed components. Please wait... ............................................................... ............................................................... ............................................................... ............................................................... ............................................................... ............................................................... ............................................................... ............................................................... ............................................................... ............................................................... ............................................................... ............................................................... ............................................................... ............................................................... ............................................................... ............................................................... ............................................................... ............................................................... ............................................................... ............................................................... ............................................................... ............................................................... ............................................................... ............................................................... ............................................................... ............................................................... ............................................................... ............................................................... ............................................................... ............................................................... ............................................................... ............................................
-
Getting application version numbers in C#Hello John. thanks for your response concerning ManagementClass and ManagementObjectCollection. I have implemented this which returns everything that I need but it is hideously slow. I have had to run it in a seperate thread since it sometime takes minutes to finish. Is this normal? Is there another way you know which is faster? When one click add remove programs it does not take this long..... Thanks, Matt
-
Querying what kind of mail server is active on a machineWe are using an exchange server. Do not know if it supports STMP but without supplying a server it throw an exception:-( Will see what I can find out
-
Querying what kind of mail server is active on a machineIs there a call to query the STMP server to be used as a parameter to be passed into the constructor of SmtpClient?
-
Querying what kind of mail server is active on a machineHello all. Does anybody know how to query the available mail servers active on a mchine prior to calling the send method on the MailMessage class. i.e. There could be a SMTP or exchange server on the network. Cheers.
-
Easy way to send an email from C# windows applicationHello All. I was wondering if anybody new the framework or some example code to send an email from a windows application. This can be done via launching a window which will have an 'automatic' attachment to be sent as an issues report. This could also be done transparenently, i.e. Without launching the outlook window...Probably allot more complicated. Any help would be appreciated. Cheers
-
Getting application version numbers in C#Thanks very much for your email. It all work perfectly now. Many thanks. Matt
-
Getting application version numbers in C#Also, I need to get the version of an installation, not the individual assemblies within it. For example, If I have a driver installer version 1.0. I may contain the following sets; driverX.sys version 1.1 driverY.sys version 1.11 driverZ.sys version 1.12 Where is the Add/Remove feature in the control panel looking to obtain the 1.0? Regards, Matt
-
Getting application version numbers in C#Thanks, but how do I use 'Assembly.GetExecutingAssembly().GetName().Version' to get the applications the at are 'installed' on the system?
-
Getting application version numbers in C#Hello All. I would like to know what api calls/functions are required to retrieve all the application version numbers that are currently installed on a windows platform. What I want is to get all the version numbers as displayed when one goes to the Control Panel->Add/Remove Programs. I want to get the application names and the versions so I can generate reports, forward in an email etc. Does any body know how to do this? Many thanks, Matt