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) ?
我添加了一个Installer类,在类中我重写了Install方法。在这个方法中,我想获得安装MSI的路径? (目录用户已选择安装该应用程序)?
I tried the following and it gives me empty string,
我试过以下它给了我空字符串,
string s = Context.Parameters["SrcDir"];
1 个解决方案
#1
4
I finally found how to get the target directory path from installer class
我终于找到了如何从安装程序类获取目标目录路径
string installationPath = this.Context.Parameters["assemblypath"];
#1
4
I finally found how to get the target directory path from installer class
我终于找到了如何从安装程序类获取目标目录路径
string installationPath = this.Context.Parameters["assemblypath"];