How to get the path where MSI is being installed within installer class

自古美人都是妖i 提交于 2019-12-06 13:33:37

问题


I have added an Installer class and within the class i'm overriding Install method. Within this method i want to get the path where MSI is being installed? (Directory user have chosen to install the application) ?

I tried the following and it gives me empty string,

string s = Context.Parameters["SrcDir"];

回答1:


I finally found how to get the target directory path from installer class

string installationPath = this.Context.Parameters["assemblypath"];


来源:https://stackoverflow.com/questions/17390867/how-to-get-the-path-where-msi-is-being-installed-within-installer-class

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!