Writing a program to read from the Registry

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am in the middle of doing a project, and I need my program to have a
process that will read from the registry all the software thats installed on
the PC. I would really appreciate it if someone could point me in right
direction on how to approach this or if you know of any good
resources(websites and/or books) that may help.

Thank.
Rgds,
Ashley
 
This isn't what you've asked for but it will do the job you're asking.

If you're looking for a way to have a complete inventory listing of your
installed applications, download and install Belarc. It will give you a complete
report of everything in your system on one HTML page which can then be printed
from your browser.

Belarc Advisor - Free Personal PC Audit
http://www.belarc.com/free_download.html
 
A lot depends on what programming language you are using, and what methods might be included in that language for reading the Registry. One kludgy way to do this is to use Regedit to export the HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall key then parse the file that is created. WMI also provides a way to work with Registry values. I have a script on my VBScript page that does this, perhaps it will give you some hints on how to do the same thing within your program. See the 'List Installed Programs' script at www.billsway.com/vbspage/.

--

Bill James
Microsoft MVP - Shell/User

Windows VBScript Utilities » www.billsway.com/vbspage/
Windows Tweaks & Tips » www.billsway.com/notes_public/
 
HKLM\Software\Classes\Installer\Products

(Enumerate under there and read product name)
 
Back
Top