![](/img/trans.png)
[英]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.