예제 #1
0
 private void OnPlanComplete(object sender, PlanCompleteEventArgs e)
 {
     if (e.Status >= 0)
     {
         Engine.Apply(IntPtr.Zero);
     }
     else
     {
         _completionSource.TrySetException(new Exception("Unable to plan successfully."));
     }
 }
예제 #2
0
        /// <summary>Called when the engine has completed planning the installation.</summary>
        /// <param name="args">The arguments of the event.</param>
        protected override void OnPlanComplete(Wix.PlanCompleteEventArgs args)
        {
            LogVerbose("Enter Method: OnPlanComplete");
            WPFBootstrapperEventArgs <Wix.PlanCompleteEventArgs> cancelArgs = new WPFBootstrapperEventArgs <Wix.PlanCompleteEventArgs>(args);

            TryInvoke(new Action(() => { _mainWindow.OnPlanComplete(cancelArgs); }));
            if (!cancelArgs.Cancel)
            {
                base.OnPlanComplete(cancelArgs.Arguments);
            }
            LogVerbose("Leaving Method: OnPlanComplete");
        }
        /// <summary>Called when the engine has completed planning the installation.</summary>
        /// <param name="args">The arguments of the event.</param>
        protected override void OnPlanComplete(Wix.PlanCompleteEventArgs args)
        {
            this.LogBootstrapperEnterEvent(args, "PlanComplete");
            WPFBootstrapperEventArgs <Wix.PlanCompleteEventArgs> cancelArgs = new WPFBootstrapperEventArgs <Wix.PlanCompleteEventArgs>(args);

            this.TryInvoke(new Action(() => { this.model.OnPlanComplete(cancelArgs); }));
            if (!cancelArgs.Cancel)
            {
                base.OnPlanComplete(cancelArgs.Arguments);
            }
            this.LogBootstrapperLeaveEvent(null, "PlanComplete");
        }
 /// <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 OnPlanComplete(object sender, PlanCompleteEventArgs e)
 {
     if (e.Status >= 0)
         Bootstrapper.Engine.Apply(System.IntPtr.Zero);
 }
예제 #5
0
		void PlanComplete(object sender, PlanCompleteEventArgs e)
		{
			if (Hresult.Succeeded(e.Status))
			{
				_root.PreApplyState = _root.State;
				_root.State = InstallationState.Applying;
				FiresecUX.Model.Engine.Apply(_hwnd);
			}
			else
			{
				_root.State = InstallationState.Failed;
			}
		}
 private void PlanComplete(object sender, PlanCompleteEventArgs e)
 {
     if (Hresult.Succeeded(e.Status))
     {
         this.root.PreApplyState = this.root.State;
         this.root.State = InstallationState.Applying;
         WixBA.Model.Engine.Apply(this.hwnd);
     }
     else
     {
         this.root.State = InstallationState.Failed;
     }
 }
예제 #7
0
        private void PlanComplete(object sender, PlanCompleteEventArgs e)
        {
            if (!Hresult.Succeeded(e.Status))
                InstallationState = InstallationState.Failed;

            PreApplyState = InstallationState;
            InstallationState = InstallationState.Applying;
            BaseModel.Apply(ViewWindowHandle);
        }
예제 #8
0
 /// <summary>
 /// Called when the engine has completed planning the installation.
 /// </summary>
 /// <param name="args">Additional arguments for this event.</param>
 protected virtual void OnPlanComplete(PlanCompleteEventArgs args)
 {
     EventHandler<PlanCompleteEventArgs> handler = this.PlanComplete;
     if (null != handler)
     {
         handler(this, args);
     }
 }
예제 #9
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;
			}
		}
예제 #10
0
파일: SilentBA.cs 프로젝트: Eun/WixSharp
 /// <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 OnPlanComplete(object sender, PlanCompleteEventArgs e)
 {
     switch (Result)
     {
         case OperationResult.Cancelled:
             Cancel();
             break;
         case OperationResult.Failed:
             Fail();
             break;
     }
 }