private void Bootstrapper_ExecutePackageComplete(object sender, ExecutePackageCompleteEventArgs e) { if (e.Status != 0) { BootstrapperManager.Instance.SetupState = SetupState.FailedOnOtherReason; return; } // If SqlExpressPackage has been installed which means that SQL setup has // been extracted, we need to execute setup in order to install SQL express // before we install and start SonarQube setup if (e.PackageId.Equals("SqlExpressPackage") && BootstrapperManager.Instance.LaunchAction == LaunchAction.Install) { if (InstallSqlExpress()) { TCPPortHelper.EnablePortForFirewall("sonarsqlexpress", BootstrapperConstants.MSSqlPortNumber); } else { this.setupFailed = true; BootstrapperManager.Instance.SetupState = SetupState.FailedOnSqlSetup; } } // If SonarQubePackage has been installed add its port to firewall if (BootstrapperManager.Instance.SetupState == SetupState.Success && e.PackageId.Equals("SonarQubePackage") && BootstrapperManager.Instance.LaunchAction == LaunchAction.Install) { TCPPortHelper.EnablePortForFirewall("SonarQube", Int32.Parse(BootstrapperManager.Instance.Bootstrapper.Engine.StringVariables["PORT"])); } }
/// <summary> /// 卸载 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void ExecutePackageComplete(object sender, ExecutePackageCompleteEventArgs e) { if (State == InstallState.Cancelled) { e.Result = Result.Cancel; } }
private void ExecutePackageComplete(object sender, ExecutePackageCompleteEventArgs e) { lock (this) { // avoid a stale display this.Message = String.Empty; } }
private void ExecutePackageComplete(object sender, ExecutePackageCompleteEventArgs e) { if (DateTime.MinValue < this.executePackageStart) { this.AddPackageTelemetry("Execute", e.PackageId ?? String.Empty, DateTime.Now.Subtract(this.executePackageStart).TotalMilliseconds, e.Status); this.executePackageStart = DateTime.MinValue; } }
private void OnExecutePackageComplete(object sender, ExecutePackageCompleteEventArgs e) { lock (_lock) { CurrentExecutingPackageName = string.Empty; Message = ""; } }
protected void ExecutePackageComplete(object sender, ExecutePackageCompleteEventArgs e) { _model.LogMessage("ExecutePackageComplete event fired."); if (this.State == InstallState.Cancelled) { e.Result = Result.Cancel; } }
private void Bootstrapper_ExecuteComplete(object sender, ExecutePackageCompleteEventArgs e) { if (e.Restart == ApplyRestart.RestartInitiated || e.Restart == ApplyRestart.RestartRequired) { MainViewModel.IsRestartRequired = true; } HandleCancellation(e); }
/// Fired when the engine has completed installing a specific package. static void OnExecutePackageComplete(object sender, ExecutePackageCompleteEventArgs e) { Logger.Instance.Trace(""); }
private void Bootstrapper_ExecuteComplete(object sender, ExecutePackageCompleteEventArgs e) { HandleCancellation(e); }
private void ExecutePackageComplete(ExecutePackageCompleteEventArgs eventArgs) { // IDK }