Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Getting installed application version numbers in C#

Getting installed application version numbers in C#

Scheduled Pinned Locked Moved C#
csharptutorialquestionannouncement
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Matt Fishbeck
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups