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

Detect Installed Applications

Status
Not open for further replies.

behbeh

Programmer
Mar 10, 2001
48
0
0
US
I need to detect whether or not several applications are installed on a local PC. After researching the subject, I found a few API calls (GetFileVersionInfoSize and GetFileVersionInfo) that will give info if it finds the application in the DEFAULT path for that application (which has to be hard-coded).
Is there any other API function that I can use to query
HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\APP PATHS\some_application.EXE ?
 
That is a registry key. There are a number of API functions for handling the registry. Two you might particularly helpful are the following:

RegEnumKey
RegQueryValueEx

Good Luck
--------------
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top