private void OnActivationError(FileCopyErrorEventArgs e) { if (ActivationError != null) { ActivationError(this, e); } }
protected void OnFileCopyError(FileCopyErrorEventArgs e) { if (FileCopyError != null) { FileCopyError(this, e); } }
private void fileCopyer_FileCopyError(object sender, FileCopyErrorEventArgs e) { OnActivationError(e); }
void ActivationError(object sender, FileCopyErrorEventArgs e) { Log.Write("安装过程中出现错误,错误描述:" + e.Error.Message + System.Environment.NewLine + "Version:" + e.Manifest.Version); MessageBox.Show(this, "安装错误:" + e.Error.Message, "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information); lab_filename.Text = "系统正在回滚"; updater.Rollback(e.Manifest); }