Click here to Skip to main content
15,891,629 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Is there a standard way of getting a list of installed programs and their EXE file locations on Windows ?

I prefer in C#.

I can get a list of program from "Uninstall" key from Registry.
(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall)

But it also contains all the driver components, some services .etc and it gives the un-installer's location (or a link to MsiExec), not the main exe location.

WMI ?
Posted

You can see this links

Click

Click
 
Share this answer
 
To Get a list of Installed Software with its complete installed path you can navigate given Link for a complete Solution

Gets a list of installed software and, if known, the software's install path[^]
All steps are mention there to use code with valuable comments.
Hope it will works for you. :)
 
Share this answer
 
Comments
W4Rl0CK47 6-Nov-10 19:25pm    
Thnx RaviRanjankr...

I can get the Install Location (Install Folder) and iterate through it to find all the exe files.

Although, as mentioned, some programs don't have the install location defined. And most programs also include their un-installer placed in the Installation folder, and some programs have multiple exe files (main app, updater, problem report util, help and support, .etc.)

Any way to get around this ?

I don't think this is possible in Windows, since a lot of Installed Applications consist of more than one executable.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900