private void SetupApplication_PlanComplete(object sender, PlanCompleteEventArgs e)
        {
            this.PlanBegin    -= SetupApplication_PlanBegin;
            this.PlanComplete -= SetupApplication_PlanComplete;

            this.InvokeApply();
        }
예제 #2
0
 /// <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);
     }
 }
예제 #3
0
 /// <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);
     }
 }
예제 #4
0
 private void PlanComplete(object sender, PlanCompleteEventArgs args)
 {
     if (args.Status >= 0)
     {
         this.BootstrapperController.WixBootstrapper.Engine.Apply(System.IntPtr.Zero);
     }
 }
예제 #5
0
            protected override void OnPlanComplete(PlanCompleteEventArgs e)
            {
                base.OnPlanComplete(e);

                if (e.Status >= 0)
                {
                    this.Engine.Apply(IntPtr.Zero);
                }
            }
예제 #6
0
        protected override void OnPlanComplete(PlanCompleteEventArgs args)
        {
            base.OnPlanComplete(args);

            if (args.Status >= 0)
            {
                Engine.Apply(System.IntPtr.Zero);
            }
        }
예제 #7
0
 protected void PlanComplete(object sender, PlanCompleteEventArgs e)
 {
     if (State == InstallState.Cancelled)
     {
         FuseBootstrapperApplication.Dispatcher.InvokeShutdown();
         return;
     }
     model.ApplyAction();
 }
예제 #8
0
 /// <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();
 }
예제 #9
0
 protected void PlanComplete(object sender, PlanCompleteEventArgs e)
 {
     _model.LogMessage("PlanComplete event fired.");
     if (this.State == InstallState.Cancelled)
     {
         CustomBootstrapperApplication.Dispatcher.InvokeShutdown();
         return;
     }
     this._model.ApplyAction();
 }
예제 #10
0
        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();
            }
        }
예제 #11
0
        private void PlanComplete(object sender, PlanCompleteEventArgs e)
        {
            if (State == InstallState.Cancelled)
            {
                BootstrapperProgram.Dispatcher.InvokeShutdown();
                return;
            }

            State = InstallState.Applying;
            Model.ApplyAction();
        }
예제 #12
0
 protected override void OnPlanComplete(PlanCompleteEventArgs args)
 {
     this.result = args.Status;
     if (Hresult.Succeeded(this.result))
     {
         this.Engine.Apply(this.windowHandle);
     }
     else
     {
         this.ShutdownUiThread();
     }
 }
예제 #13
0
 protected override void OnPlanComplete(PlanCompleteEventArgs args)
 {
     this.result = args.Status;
     if (Hresult.Succeeded(this.result))
     {
         this.Engine.Apply(IntPtr.Zero);
     }
     else
     {
         this.wait.Set();
     }
 }
예제 #14
0
 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;
     }
 }
예제 #15
0
 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;
     }
 }
예제 #16
0
 private void PlanComplete(object sender, PlanCompleteEventArgs e)
 {
     if (HResult.Succeeded(e.Status))
     {
         PreApplyState = State;
         State         = InstallationState.Applying;
         App.Current.Apply();
     }
     else
     {
         State = InstallationState.Failed;
     }
 }
예제 #17
0
 private void OnPlanComplete(object sender, PlanCompleteEventArgs e)
 {
     if (e.Status >= 0)
     {
         PreApplyState = InstallState;
         InstallState  = InstallationState.Applying;
         _bootstrapper.Engine.Apply(WindowHandle);
     }
     else
     {
         InstallState = InstallationState.Failed;
     }
 }
예제 #18
0
 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;
            }
        }
예제 #20
0
 /// <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;
     }
 }
예제 #21
0
        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();
            }
        }
예제 #22
0
 /// Fired when the engine has completed planning the installation.
 static void OnPlanComplete(object sender, PlanCompleteEventArgs e)
 {
     Logger.Instance.Trace("" + e.Status.ToString());
 }
예제 #23
0
 private void PlanComplete(PlanCompleteEventArgs eventArgs)
 {
     // IDK
 }
예제 #24
0
 private void Bootstrapper_PlanComplete(object sender, PlanCompleteEventArgs e)
 {
     this.ApplyAction();
 }
            protected override void OnPlanComplete(PlanCompleteEventArgs e)
            {
                base.OnPlanComplete(e);

                if (e.Status >= 0)
                {
                    this.Engine.Apply(IntPtr.Zero);
                }
            }
 private void PlanCompleted(object sender, PlanCompleteEventArgs e)
 {
     this.model.LogMessage("Planning has been started for silent uninstallation.");
     model.ApplyAction();
 }