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]
)
views:
462answers:
2
+1
A:
This question is perfectly answered by the method described in the link below:
Jader Dias
2010-01-15 11:26:09
A:
string path = System.Reflection.Assembly.GetExecutingAssembly().Location
Mose
2010-03-10 16:07:05
It won't work in this case
Jader Dias
2010-03-10 16:23:59