我在做一个安装程序,在安装程序中我写了个类,这个类有一个需要获取IIS目录的,我不知道怎么获取到.
public override void Install(System.Collections.IDictionary stateSaver)
{
sServerName = this.Context.Parameters["server"];
sUserID = this.Context.Parameters["user"];
sPW = this.Context.Parameters["pwd"];
CreateDB();
base.Install(stateSaver); }protected void CreateDB()
{
Assembly Asm = Assembly.GetExecutingAssembly();
string sDBFileName= Asm.GetName().FullName ;
string sIISPath =???????
}
就是这个sIISPath怎么取出来
public override void Install(System.Collections.IDictionary stateSaver)
{
sServerName = this.Context.Parameters["server"];
sUserID = this.Context.Parameters["user"];
sPW = this.Context.Parameters["pwd"];
CreateDB();
base.Install(stateSaver); }protected void CreateDB()
{
Assembly Asm = Assembly.GetExecutingAssembly();
string sDBFileName= Asm.GetName().FullName ;
string sIISPath =???????
}
就是这个sIISPath怎么取出来
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货