views:

462

answers:

2

When my ProjectInstaller : System.Configuration.Install.Installer is called by the Setup project the current path is c:\windows\system32. How can I get the path where the application is being installed without hard coding this to the project ? (the destination path is something like c:\program files\[manufacturer]\[service name])

+1  A: 

This question is perfectly answered by the method described in the link below:

http://stackoverflow.com/questions/2066048/how-to-make-a-system-configuration-install-installer-to-get-a-variable-from-the-s/2070876#2070876

Jader Dias
A: 
string path = System.Reflection.Assembly.GetExecutingAssembly().Location
Mose
It won't work in this case
Jader Dias