Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check with C# where a program is installed

Tags:

c#

I need to check where a program is installed by program name (name that appears in Add or Remove Programs). What is the best way to that so that it'd work fine for all languages.

like image 828
Nemo Avatar asked Sep 22 '09 06:09

Nemo


1 Answers

Take a look into the registry at

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall

Just iterate over all subkeys and take a look into the values DisplayName and InstallLocation. Here you'll find the infos you want and much more ;-)

like image 76
Oliver Avatar answered Sep 28 '22 17:09

Oliver