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)
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!
|
|
|
|
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)
It's just a reg key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
|
|
|
|
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)
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.
|
|
|
|
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)
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).
|
|
|
|
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)
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?
|
|
|
|