View Full Version : Dynamically detecting installation folder

06-10-2011, 04:56 PM
I am building a setup project and the installation folder will be different depending on where another completely seperate application was installed previously.

More than likely the other application was installed in:
C:\Program Files (x86)\Microsoft Dynamics\GP2010\Dynamics.exe

But not neccessarily. My application (DLL) has to be installed in the same folder where Dynamics.exe is located. Is there a way in the setup project to determine this folder either by checking the registry or by looking for the location of the Dynamics.exe file and then have the installation folder textbox populate automatically with the path to that folder?