2

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"];
4

1 回答 1

6

我终于找到了如何从安装程序类中获取目标目录路径

string installationPath = this.Context.Parameters["assemblypath"];
于 2013-07-02T14:28:46.810 回答