簡體   English   中英

System.Configuration.Install.Installer實例如何獲取目標文件夾?

[英]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]

通過以下鏈接中描述的方法可以完美地回答此問題:

如何使System.Configuration.Install.Installer從安裝項目中獲取變量?

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM