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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get Installed Programs List

Status
Not open for further replies.

RMS001

Programmer
Nov 12, 2002
45
0
0
CA
Hi - Is there an API to get the list of programs in the Add/Remove Programs list.

(Or any other way to determine if a program has been installed under Xp and Vista?).

HKEY_CURRENT_USER\Software\? (Some programs add reg entries when just being run after being unzipped (not installed) - e.g., Audacity)

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\? (is this reliable?)

Program Files (could be anywhere)?

I am told that installers such as Wise must be able to access this data. Any ideas?

Thanks - Ron
 
Use the registry just like Add/Remove programs does.

If you're curious what add/remove programs reads from the registry, download regmon and open Add/Remove programs while it's running...
 
See thread222-620342.
See also thread222-653904 if you want to query installed programs on computers on LAN.
 
Thanks Hypetia - That does the job perfectly. I was wondering how to deal with the _is1. Using "DisplayName" for the lpValueName parameter solves the problem.

Thanks again. - Ron
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top