[英]How to use System.Configuration.Install.Installer with scheduled tasks?
[英]How a System.Configuration.Install.Installer instance can get the destination folder?
当安装项目调用我的ProjectInstaller : System.Configuration.Install.Installer
,当前路径为c:\\windows\\system32
。 如何在不对项目进行硬编码的情况下获得安装应用程序的路径? (目标路径类似于c:\\program files\\[manufacturer]\\[service name]
)
通过以下链接中描述的方法可以完美地回答此问题:
string path = System.Reflection.Assembly.GetExecutingAssembly().Location
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.