How to get the path where MSI is being installed w

2019-04-15 10:23发布

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条回答
何必那么认真
2楼-- · 2019-04-15 11:02

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

string installationPath = this.Context.Parameters["assemblypath"];
查看更多
登录 后发表回答