add/remove program list for windows 7

Author Message
thenson81

  • Total Posts : 8
  • Scores: 0
  • Reward points : 0
  • Joined: 12/18/2011
  • Status: offline
add/remove program list for windows 7 Friday, December 23, 2011 10:59 AM (permalink)
0
Hi guys,
 
I have been able to get my script to pull from the registry for xp clients but haven't been able to find how to do it in windows 7.   Can anyone throw me a link or direction as to how I can just list them, I have all the logic to pull the ones that I want once I have a list since I already have it for xp working great.
 
Thanks and Merry xmas!
 
#1
    ebgreen

    • Total Posts : 8227
    • Scores: 98
    • Reward points : 0
    • Joined: 7/12/2005
    • Status: offline
    Re:add/remove program list for windows 7 Tuesday, December 27, 2011 3:56 AM (permalink)
    0
    It's just a reg key:
     
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
    "... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
    Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
    http://www.visualbasicscript.com/m_47117/tm.htm
     
    #2
      thenson81

      • Total Posts : 8
      • Scores: 0
      • Reward points : 0
      • Joined: 12/18/2011
      • Status: offline
      Re:add/remove program list for windows 7 Thursday, December 29, 2011 1:57 AM (permalink)
      0
      Unfortunately this does not display the same programs in windows 7 as it does in xp.  It does not on mine at least.. Might have to do with it being 64bit and the programs are installed in 32 mode?
       
      Like I said I was able to get it to work great in xp in the registry.
       
      I ended up using the Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")  and got it to work like this but it takes up to 30-40 seconds to get the programs as opposed to 3 seconds in windows just querying the registry.
       
      thanks for you reply I appreciate your time and feedback. 
       
       
       
      #3
        ebgreen

        • Total Posts : 8227
        • Scores: 98
        • Reward points : 0
        • Joined: 7/12/2005
        • Status: offline
        Re:add/remove program list for windows 7 Thursday, December 29, 2011 3:05 AM (permalink)
        0
        If you are using WMI to query the Win32_Product class, be aware that this will only show programs that were installed via the Windows Installer Service (i.e. MSIs).
        "... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
        Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
        http://www.visualbasicscript.com/m_47117/tm.htm
         
        #4
          thenson81

          • Total Posts : 8
          • Scores: 0
          • Reward points : 0
          • Joined: 12/18/2011
          • Status: offline
          Re:add/remove program list for windows 7 Thursday, December 29, 2011 4:51 AM (permalink)
          0
          All of the software installed at my company is done with .msi  thanks for the warning though!
           
           
          I am just trying to speed my script up since it is 10 times longer on a 7 machine than XP.
           
          Any other ideas?  That reg key isn't the same so I am assuming there has to be some sort of setting that programs and features reads from to populate?
           
          #5

            Online Bookmarks Sharing: Share/Bookmark

            Jump to:

            Current active users

            There are 0 members and 1 guests.

            Icon Legend and Permission

            • New Messages
            • No New Messages
            • Hot Topic w/ New Messages
            • Hot Topic w/o New Messages
            • Locked w/ New Messages
            • Locked w/o New Messages
            • Read Message
            • Post New Thread
            • Reply to message
            • Post New Poll
            • Submit Vote
            • Post reward post
            • Delete my own posts
            • Delete my own threads
            • Rate post

            2000-2012 ASPPlayground.NET Forum Version 3.9