Find Application

Hi,

Is it possible on Windows to find out of an application is installed and if so, the file path to that application?

For example, I’d like to know if the user has Internet Explorer, FireFox, Chrome and Safari installed and if so, get a folderitem reference to them.

Is there a quick way to do this on Windows?

Thanks for your help,
Paul

How to Register an Internet Browser or Email Client With the
Windows Start Menu

It lists where in the Registry you can read out all (properly) installed browsers.

A more generalized search if you know the executable name:

[code] dim s as shell
s = new Shell
s.TimeOut = 15000

#If TargetWin32 Then
s.Execute(“where /R \ appname.exe”)
if s.ErrorCode = 0 then // success
msgbox s.Result
end if

#Endif[/code]

This code is slow to execute. It helps to narrow down the search path.

I believe the best way is to explore the content of HKEY_CURRENT_USER\SOFTWARE\Clients which contains the folders of all programs installed in Windows.

What you want to do is use the Windows Registry command to fetch the proper folder and look inside for the install path.

Actually, it is HKEY_CURRENT_USER\SOFTWARE\ client being only one of the folders that leads to the default client, as outlined in the document pointed to by Eli. The key that contains all programs is HKEY_CURRENT_USER\\SOFTWARE\\

Thanks a lot for the suggestions, I appreciate it. I am working on something to properly parse the registry items.