예제 #1
0
        /// <summary>Called when the engine has completed installing a specific package.</summary>
        /// <param name="args">The arguments of the event.</param>
        protected override void OnExecutePackageComplete(Wix.ExecutePackageCompleteEventArgs args)
        {
            LogVerbose("Enter Method: OnExecutePackageComplete");
            WPFBootstrapperEventArgs <Wix.ExecutePackageCompleteEventArgs> cancelArgs = new WPFBootstrapperEventArgs <Wix.ExecutePackageCompleteEventArgs>(args);

            TryInvoke(new Action(() => { _mainWindow.OnExecutePackageComplete(cancelArgs); }));
            if (!cancelArgs.Cancel)
            {
                base.OnExecutePackageComplete(cancelArgs.Arguments);
            }
            LogVerbose("Leaving Method: OnExecutePackageComplete");
        }
        /// <summary>Called when the engine has completed installing a specific package.</summary>
        /// <param name="args">The arguments of the event.</param>
        protected override void OnExecutePackageComplete(Wix.ExecutePackageCompleteEventArgs args)
        {
            this.LogBootstrapperEnterEvent(args, "ExecutePackageComplete");
            WPFBootstrapperEventArgs <Wix.ExecutePackageCompleteEventArgs> cancelArgs = new WPFBootstrapperEventArgs <Wix.ExecutePackageCompleteEventArgs>(args);

            this.TryInvoke(new Action(() => { this.model.OnExecutePackageComplete(cancelArgs); }));
            if (!cancelArgs.Cancel)
            {
                base.OnExecutePackageComplete(cancelArgs.Arguments);
            }
            this.LogBootstrapperLeaveEvent(null, "ExecutePackageComplete");
        }
		private void OnExecutePackageComplete(object sender, ExecutePackageCompleteEventArgs e)
		{
			lock (_lock)
			{
				CurrentExecutingPackageName = string.Empty;
				Message = "";
			}
		}
예제 #4
0
		void ExecutePackageComplete(object sender, ExecutePackageCompleteEventArgs e)
		{
			if (DateTime.MinValue < _executePackageStart)
			{
				this.AddPackageTelemetry("Execute", e.PackageId ?? String.Empty, DateTime.Now.Subtract(_executePackageStart).TotalMilliseconds, e.Status);
				_executePackageStart = DateTime.MinValue;
			}
		}
예제 #5
0
        private void ExecutePackageComplete(object sender, ExecutePackageCompleteEventArgs e)
        {
            if (!BaseModel.PlannedAction.IsInstallAction())
                return;

            BaseModel.UploadLogEntry("Install", "Installed package {0}", e.PackageId);
        }
예제 #6
0
        Result IBootstrapperApplication.OnExecutePackageComplete(string wzPackageId, int hrExitCode, ApplyRestart restart, int nRecommendation)
        {
            ExecutePackageCompleteEventArgs args = new ExecutePackageCompleteEventArgs(wzPackageId, hrExitCode, restart, nRecommendation);
            this.OnExecutePackageComplete(args);

            return args.Result;
        }
예제 #7
0
 /// <summary>
 /// Called when the engine has completed installing a specific package.
 /// </summary>
 /// <param name="args">Additional arguments for this event.</param>
 protected virtual void OnExecutePackageComplete(ExecutePackageCompleteEventArgs args)
 {
     EventHandler<ExecutePackageCompleteEventArgs> handler = this.ExecutePackageComplete;
     if (null != handler)
     {
         handler(this, args);
     }
 }
예제 #8
0
 private void ExecutePackageComplete(object sender, ExecutePackageCompleteEventArgs e)
 {
     Subtitle = "";
 }
        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"]));
            }
        }