In windows using C#, how to get the installation path of a software(for example consider nunit or any other software like MS word etc) from my project.? Also how to set the path variables that we set in Environment variables so that we can run the application just by giving in command prompt.
Like if i install Nunit in "C:\Program Files" i can run it by giving 'nunit' in cmd prompt but if i install in a different location i cant do the same. I need to get the location or path of NUnit or any other software installed in my system(having windows xp) from my project.
EDIT: like i can get the path of installed program from registry. HKEY_CURRENT_USER->SOFTWARE