简体   繁体   中英

How a System.Configuration.Install.Installer instance can get the destination folder?

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] )

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

How to make a System.Configuration.Install.Installer to get a variable from the Setup project?

string path = System.Reflection.Assembly.GetExecutingAssembly().Location

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM