private void SetupApplication_PlanComplete(object sender, PlanCompleteEventArgs e) { this.PlanBegin -= SetupApplication_PlanBegin; this.PlanComplete -= SetupApplication_PlanComplete; this.InvokeApply(); }
/// <summary> /// Method that gets invoked when the <see cref="Bootstrapper" /> /// PlanComplete event is fired. If the planning was successful, it /// instructs the <see cref="Bootstrapper" /> <see cref="Engine" /> to /// install the packages. /// </summary> private void OnPlanComplete(object sender, PlanCompleteEventArgs e) { if (e.Status >= 0) { Bootstrapper.Engine.Apply(IntPtr.Zero); } }
/// <summary> /// Method that gets invoked when the Bootstrapper PlanComplete event is fired. /// If the planning was successful, it instructs the Bootstrapper Engine to /// install the packages. /// </summary> void OnPlanComplete(object sender, PlanCompleteEventArgs e) { if (e.Status >= 0) { this.Engine.Apply(System.IntPtr.Zero); } }
private void PlanComplete(object sender, PlanCompleteEventArgs args) { if (args.Status >= 0) { this.BootstrapperController.WixBootstrapper.Engine.Apply(System.IntPtr.Zero); } }
protected override void OnPlanComplete(PlanCompleteEventArgs e) { base.OnPlanComplete(e); if (e.Status >= 0) { this.Engine.Apply(IntPtr.Zero); } }
protected override void OnPlanComplete(PlanCompleteEventArgs args) { base.OnPlanComplete(args); if (args.Status >= 0) { Engine.Apply(System.IntPtr.Zero); } }
protected void PlanComplete(object sender, PlanCompleteEventArgs e) { if (State == InstallState.Cancelled) { FuseBootstrapperApplication.Dispatcher.InvokeShutdown(); return; } model.ApplyAction(); }
/// <summary> /// 开始安装时调用的方法位PlanAction() /// 该方法执行完成之后触发本事件 /// 事件中调用ApplyAction()方法开始执行安装进程 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void PlanComplete(object sender, PlanCompleteEventArgs e) { if (installViewModel.State == InstallState.Cancelled) { CustomBootstrapperApplication.Dispatcher .InvokeShutdown(); return; } this.BootstrapperModel.ApplyAction(); }
protected void PlanComplete(object sender, PlanCompleteEventArgs e) { _model.LogMessage("PlanComplete event fired."); if (this.State == InstallState.Cancelled) { CustomBootstrapperApplication.Dispatcher.InvokeShutdown(); return; } this._model.ApplyAction(); }
private void Bootstrapper_PlanComplete(object sender, PlanCompleteEventArgs e) { Log(LogLevel.Standard, $"Bootstrapper has called {nameof(this.Bootstrapper_PlanComplete)}: Status {e.Status}"); Bootstrapper.PlanComplete -= Bootstrapper_PlanComplete; if (BurnInstallationState != BurnInstallationState.Applying) { ApplyAction(); } }
private void PlanComplete(object sender, PlanCompleteEventArgs e) { if (State == InstallState.Cancelled) { BootstrapperProgram.Dispatcher.InvokeShutdown(); return; } State = InstallState.Applying; Model.ApplyAction(); }
protected override void OnPlanComplete(PlanCompleteEventArgs args) { this.result = args.Status; if (Hresult.Succeeded(this.result)) { this.Engine.Apply(this.windowHandle); } else { this.ShutdownUiThread(); } }
protected override void OnPlanComplete(PlanCompleteEventArgs args) { this.result = args.Status; if (Hresult.Succeeded(this.result)) { this.Engine.Apply(IntPtr.Zero); } else { this.wait.Set(); } }
private void OnPlanComplete(object sender, PlanCompleteEventArgs e) { if (HResult.Succeeded(e.Status)) { _engine.Apply(OnUIThread(() => Application.Current.MainWindow != null ? new WindowInteropHelper(Application.Current.MainWindow).EnsureHandle() : IntPtr.Zero)); } else { _completedStepVmFactory.GetViewModelInstance().ExitCode = e.Status; _completedStepVmFactory.GetViewModelInstance().Result = Cancelled ? OperationResult.Cancelled : OperationResult.Failed; } }
private void PlanComplete(object sender, PlanCompleteEventArgs e) { if (HResultSucceeded(e.Status)) { this.PreApplyState = this.State; this.State = InstallationState.Applying; ba.Engine.Apply(this.hwnd); } else { this.State = InstallationState.Failed; } }
private void PlanComplete(object sender, PlanCompleteEventArgs e) { if (HResult.Succeeded(e.Status)) { PreApplyState = State; State = InstallationState.Applying; App.Current.Apply(); } else { State = InstallationState.Failed; } }
private void OnPlanComplete(object sender, PlanCompleteEventArgs e) { if (e.Status >= 0) { PreApplyState = InstallState; InstallState = InstallationState.Applying; _bootstrapper.Engine.Apply(WindowHandle); } else { InstallState = InstallationState.Failed; } }
private void PlanComplete(object sender, PlanCompleteEventArgs e) { if (Hresult.Succeeded(e.Status)) { this.root.PreApplyState = this.root.InstallState; this.root.InstallState = InstallationState.Applying; WixBA.Model.Engine.Apply(this.root.ViewWindowHandle); } else { this.root.InstallState = InstallationState.Failed; } }
private void OnPlanComplete(object sender, PlanCompleteEventArgs e) { switch (Result) { case OperationResult.Cancelled: Cancel(); break; case OperationResult.Failed: Fail(); break; } }
/// <summary> /// Method that gets invoked when the Bootstrapper PlanComplete event is fired. /// If the planning was successful, it instructs the Bootstrapper Engine to /// install the packages. /// </summary> private void OnPlanCompleteUiUpdate(object sender, PlanCompleteEventArgs e) { if (e.Status >= 0) { if (_applyAutomatically) { ApplyExecute(); } } else { IsThinking = false; ExitCode = e.Status; } }
private void OnPlanComplete(object sender, PlanCompleteEventArgs e) { if (e.Status >= 0) { Engine.Apply(System.IntPtr.Zero); } else { Result = ActionResult.Failure; var error = new Win32Exception(e.Status).Message; var message = $"Error installing: {error}. Code: 0x{e.Status:x8}"; MessageBox.Show(message, "Error", MessageBoxButton.OK, MessageBoxImage.Error); Dispatcher.InvokeShutdown(); } }
/// Fired when the engine has completed planning the installation. static void OnPlanComplete(object sender, PlanCompleteEventArgs e) { Logger.Instance.Trace("" + e.Status.ToString()); }
private void PlanComplete(PlanCompleteEventArgs eventArgs) { // IDK }
private void Bootstrapper_PlanComplete(object sender, PlanCompleteEventArgs e) { this.ApplyAction(); }
private void PlanCompleted(object sender, PlanCompleteEventArgs e) { this.model.LogMessage("Planning has been started for silent uninstallation."); model.ApplyAction(); }