Example #1
0
 private void SetInstallationStateOnDetectBegin(Wix.DetectBeginEventArgs args)
 {
     if (args.Installed)
     {
         this.ProductInstallationState = ProductInstallationState.SameVersionInstalled;
     }
     else
     {
         this.ProductInstallationState = ProductInstallationState.NotInstalled;
     }
 }
Example #2
0
        /// <summary>Called when the overall detection phase has begun.</summary>
        /// <param name="args">The arguments of the event.</param>
        protected override void OnDetectBegin(Wix.DetectBeginEventArgs args)
        {
            LogVerbose("Enter Method: OnDetectBegin");
            WPFBootstrapperEventArgs <Wix.DetectBeginEventArgs> cancelArgs = new WPFBootstrapperEventArgs <Wix.DetectBeginEventArgs>(args);

            TryInvoke(new Action(() => { _mainWindow.OnDetectBegin(cancelArgs); }));
            if (!cancelArgs.Cancel)
            {
                base.OnDetectBegin(cancelArgs.Arguments);
            }
            LogVerbose("Leaving Method: OnDetectBegin");
        }
        /// <summary>Called when the overall detection phase has begun.</summary>
        /// <param name="args">The arguments of the event.</param>
        protected override void OnDetectBegin(Wix.DetectBeginEventArgs args)
        {
            this.LogBootstrapperEnterEvent(args, "DetectBegin");
            WPFBootstrapperEventArgs <Wix.DetectBeginEventArgs> cancelArgs = new WPFBootstrapperEventArgs <Wix.DetectBeginEventArgs>(args);

            this.TryInvoke(new Action(() => { this.model.OnDetectBegin(cancelArgs); }));
            if (!cancelArgs.Cancel)
            {
                base.OnDetectBegin(cancelArgs.Arguments);
            }
            this.LogBootstrapperLeaveEvent(null, "DetectBegin");
        }
Example #4
0
		void DetectBegin(object sender, DetectBeginEventArgs e)
		{
			_root.State = InstallationState.Initializing;
			_planAttempted = false;
		}
Example #5
0
        private void DetectBegin(object sender, DetectBeginEventArgs e)
        {
            BaseModel.PlannedAction = InstallActions.Unknown;
            if (!e.Installed)
            {
                InstallationState = InstallationState.DetectedAbsent;
                return;
            }

            if (BaseModel.Command.Action != LaunchAction.Uninstall)
                InstallationState = InstallationState.DetectedPresent;
        }
Example #6
0
 private void DetectBegin(object sender, DetectBeginEventArgs e)
 {
     this.root.DetectState = e.Installed ? DetectionState.Present : DetectionState.Absent;
     WixBA.Model.PlannedAction = LaunchAction.Unknown;
 }
Example #7
0
 /// <summary>
 /// Called when the overall detection phase has begun.
 /// </summary>
 /// <param name="args">Additional arguments for this event.</param>
 protected virtual void OnDetectBegin(DetectBeginEventArgs args)
 {
     EventHandler<DetectBeginEventArgs> handler = this.DetectBegin;
     if (null != handler)
     {
         handler(this, args);
     }
 }
Example #8
0
        Result IBootstrapperApplication.OnDetectBegin(bool fInstalled, int cPackages)
        {
            DetectBeginEventArgs args = new DetectBeginEventArgs(fInstalled, cPackages);
            this.OnDetectBegin(args);

            return args.Result;
        }
		private void OnDetectBegin(object sender, DetectBeginEventArgs e)
		{
			ParseCommandLine();
			Operation = !e.Installed ? Operation.Installation : Operation.Modification;
		}
        Result IBootstrapperApplication.OnDetectBegin(int cPackages)
        {
            DetectBeginEventArgs args = new DetectBeginEventArgs(cPackages);
            this.OnDetectBegin(args);

            return args.Result;
        }
 private void DetectBegin(object sender, DetectBeginEventArgs e)
 {
     this.State = InstallationState.Initializing;
 }