Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I get a list of my installed programs? 1

Status
Not open for further replies.

krussell1711

Programmer
Jan 12, 2005
10
US
Hi all,
I want to know how to get a list of all installed programs on my PC. Basically, I want to duplicate the add/remove program list and get the icon for each program in the list.

Any help would be greatly appreciated.
Thanks
Krussell1711
 
Check the registry entries under
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall

/Per
[sub]
"It was a work of art, flawless, sublime. A triumph equaled only by its monumental failure."[/sub]
 
Thanks PerFnurt, that is what I needed. Can you also tell me how to get the icons associated with each program? Just like in the control panel.

Thanks
Krussell1711
 
If an entry has a DisplayIcon attribute set, then use that icon.

Else if the entry's key is a GUID lookup the icon in
HKEY_CLASSES_ROOT\CLSID\The GUID\DefaultIcon

Else use a default, generic, icon.

/Per
[sub]
"It was a work of art, flawless, sublime. A triumph equaled only by its monumental failure."[/sub]
 
im just corios, how do you get info from a key in your regetry in a c++ app?
 
>im just corios, how do you get info from a key in your regetry in a c++ app?

For example use the RegEnumKeyEx function.



/Per
[sub]
"It was a work of art, flawless, sublime. A triumph equaled only by its monumental failure."[/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top