public override void Install(IDictionary stateSaver)
{
.....
}我在这里加入了检测的代码,如果检测失败就进行回滚,在这个方法里加入 “this.Rollback(stateSaver);”好像不行,请问该这么做?
{
.....
}我在这里加入了检测的代码,如果检测失败就进行回滚,在这个方法里加入 “this.Rollback(stateSaver);”好像不行,请问该这么做?
IDictionary,它包含计算机的安装前状态。 IDictionary stateSaver = new Hashtable();
myAssemblyInstaller.Install( stateSaver );
this.Rollback(stateSaver);”
这段代码写到哪里?
this.Rollback(stateSaver); 这句不能放在重写的方法内的
public override void Rollback( IDictionary mySavedState )