Char Jaya

Char Jaya

  • NA
  • 6
  • 0

Get Third Party Application Install Directory

Jun 10 2010 2:25 PM
Hi guys,

I'm making a C# program and I need to find installation paths of some software that is installed on a computer.
What I have to work with is, I have the Program's name (e.g. Google Chrome), i have the process name (e.g. Chrome.exe).
What I need now is the path to Chrome.exe. How can i use C# to find the path if i was to pass either the program name or process name as a parameter for the search?

My ultimate goal of this is to have a list of programs by program name and have a list of process names for those programs and I want to be able to open a program from this list.

I am using VS2008 and the program I am developing is done using .NET 3.5 framework.

I hope you guy's know what I mean.

Thanks very much

Answers (1)