Esempio n. 1
0
 protected internal override void OnAfterDisplay(EventArgs e)
 {
     base.OnAfterDisplay(e);
     //unattended setup
     if (!string.IsNullOrEmpty(SetupVariables.SetupXml))
     {
         Wizard.GoNext();
     }
 }
Esempio n. 2
0
 protected internal override void OnAfterDisplay(EventArgs e)
 {
     base.OnAfterDisplay(e);
     this.Wizard.NextText = "I &Agree";
     //unattended setup
     if (!string.IsNullOrEmpty(Wizard.SetupVariables.SetupXml) && AllowMoveNext)
     {
         Wizard.GoNext();
     }
 }
Esempio n. 3
0
        /// <summary>
        /// Displays process progress.
        /// </summary>
        public void Start()
        {
            SetProgressValue(0);

            string component     = Wizard.SetupVariables.ComponentFullName;
            string componentName = Wizard.SetupVariables.ComponentName;

            try
            {
                SetProgressText("Creating installation script...");

                Wizard.ActionManager.ActionProgressChanged += new EventHandler <ActionProgressEventArgs <int> >((object sender, ActionProgressEventArgs <int> e) =>
                {
                    SetProgressText(e.StatusMessage);
                });

                Wizard.ActionManager.TotalProgressChanged += new EventHandler <ProgressEventArgs>((object sender, ProgressEventArgs e) =>
                {
                    SetProgressValue(e.Value);
                });

                Wizard.ActionManager.ActionError += new EventHandler <ActionErrorEventArgs>((object sender, ActionErrorEventArgs e) =>
                {
                    ShowError();
                    Rollback();
                    //
                    return;
                });

                Wizard.ActionManager.Start();

                //this.progressBar.EventData = 100;
            }
            catch (Exception ex)
            {
                if (Utils.IsThreadAbortException(ex))
                {
                    return;
                }

                return;
            }

            SetProgressText("Completed. Click Next to continue.");
            this.AllowMoveNext = true;
            this.AllowCancel   = false;
            //unattended setup
            if (!string.IsNullOrEmpty(SetupVariables.SetupXml))
            {
                Wizard.GoNext();
            }
        }
Esempio n. 4
0
        /// <summary>
        /// Displays process progress.
        /// </summary>
        public void Start()
        {
            bool pass = true;

            try
            {
                lvCheck.Items.Clear();
                this.imgError.Visible  = false;
                this.imgOk.Visible     = false;
                this.lblResult.Visible = false;

                foreach (ConfigurationCheck check in Checks)
                {
                    AddListViewItem(check);
                }
                this.Update();
                CheckStatuses status  = CheckStatuses.Success;
                string        details = string.Empty;
                //
                foreach (ListViewItem item in lvCheck.Items)
                {
                    ConfigurationCheck check = (ConfigurationCheck)item.Tag;
                    item.ImageIndex       = 0;
                    item.SubItems[2].Text = "Running";
                    this.Update();

                    #region Previous Prereq Verification
                    switch (check.CheckType)
                    {
                    case CheckTypes.OperationSystem:
                        status = CheckOS(check.SetupVariables, out details);
                        break;

                    case CheckTypes.IISVersion:
                        status = CheckIISVersion(check.SetupVariables, out details);
                        break;

                    case CheckTypes.ASPNET:
                        status = CheckASPNET(check.SetupVariables, out details);
                        break;

                    case CheckTypes.SCPServer:
                        status = CheckSCPServer(check.SetupVariables, out details);
                        break;

                    case CheckTypes.SCPEnterpriseServer:
                        status = CheckSCPEnterpriseServer(check.SetupVariables, out details);
                        break;

                    case CheckTypes.SCPPortal:
                        status = CheckSCPPortal(check.SetupVariables, out details);
                        break;

                    case CheckTypes.SCPWebDavPortal:
                        status = CheckSCPWebDavPortal(check.SetupVariables, out details);
                        break;

                    default:
                        status = CheckStatuses.Warning;
                        break;
                    }

                    #endregion

                    switch (status)
                    {
                    case CheckStatuses.Success:
                        item.ImageIndex       = 1;
                        item.SubItems[2].Text = "Success";
                        break;

                    case CheckStatuses.Warning:
                        item.ImageIndex       = 2;
                        item.SubItems[2].Text = "Warning";
                        break;

                    case CheckStatuses.Error:
                        item.ImageIndex       = 3;
                        item.SubItems[2].Text = "Error";
                        pass = false;
                        break;
                    }
                    item.SubItems[3].Text = details;
                    this.Update();
                }
                //
                //actionManager.PrerequisiteComplete += new EventHandler<ActionProgressEventArgs<bool>>((object sender, ActionProgressEventArgs<bool> e) =>
                //{
                //
                //});
                //
                //actionManager.VerifyDistributivePrerequisites();

                ShowResult(pass);
                if (pass)
                {
                    //unattended setup
                    if (!string.IsNullOrEmpty(Wizard.SetupVariables.SetupXml) && AllowMoveNext)
                    {
                        Wizard.GoNext();
                    }
                }
            }
            catch (Exception ex)
            {
                if (Utils.IsThreadAbortException(ex))
                {
                    return;
                }

                ShowError();
                return;
            }
        }