コード例 #1
0
 protected internal override void Close(InstallOptions options)
 {
     foreach (WebApplicationInfo info in webApplicationsCheckedListBox.CheckedItems)
       {
     options.WebApplicationTargets.Add(info.Application);
       }
 }
コード例 #2
0
        private void AddLinks(InstallOptions options)
        {
            // Show a documentation Url if one is configured
            if (!String.IsNullOrEmpty(InstallConfiguration.DocumentationUrl))
            {
                string linkText  = InstallConfiguration.FormatString(CommonUIStrings.finishedLinkText);
                int    linkStart = linkText.Length - 5;
                AddLink(linkText, linkStart, 4, InstallConfiguration.DocumentationUrl);
            }

            // Add the for each target
            if (InstallConfiguration.FeatureScope == SPFeatureScope.Site &&
                !String.IsNullOrEmpty(InstallConfiguration.SiteCollectionRelativeConfigLink))
            {
                // Add site collection links
                AddSiteCollectionLinks(options.SiteCollectionTargets, FormatRelativeLink(InstallConfiguration.SiteCollectionRelativeConfigLink));
            }
            else if (InstallConfiguration.FeatureScope == SPFeatureScope.Farm &&
                     !String.IsNullOrEmpty(InstallConfiguration.SSPRelativeConfigLink))
            {
                // Add Shared Service Provider links
                // Note that thes are really Shared Resource Provider links - we just wish we knew how to only show links for a SSP and not SRPs
                AddSspLinks(options.WebApplicationTargets, FormatRelativeLink(InstallConfiguration.SSPRelativeConfigLink));
            }
        }
コード例 #3
0
        protected internal override void Open(InstallOptions options)
        {
            bool enable = repairRadioButton.Checked || removeRadioButton.Checked;

            Form.Operation          = InstallOperation.Repair;
            Form.NextButton.Enabled = enable;
        }
コード例 #4
0
        private void AddLinks(InstallOptions options)
        {
            // Show a documentation Url if one is configured
              if (!String.IsNullOrEmpty(InstallConfiguration.DocumentationUrl))
              {
            string linkText = InstallConfiguration.FormatString(CommonUIStrings.finishedLinkText);
            int linkStart = linkText.Length - 5;
            AddLink(linkText, linkStart, 4, InstallConfiguration.DocumentationUrl);
              }

              // Add the for each target
              if (InstallConfiguration.FeatureScope == SPFeatureScope.Site &&
            !String.IsNullOrEmpty(InstallConfiguration.SiteCollectionRelativeConfigLink))
              {
            // Add site collection links
            AddSiteCollectionLinks(options.SiteCollectionTargets, FormatRelativeLink(InstallConfiguration.SiteCollectionRelativeConfigLink));
              }
              else if (InstallConfiguration.FeatureScope == SPFeatureScope.Farm &&
            !String.IsNullOrEmpty(InstallConfiguration.SSPRelativeConfigLink))
              {
            // Add Shared Service Provider links
            // Note that thes are really Shared Resource Provider links - we just wish we knew how to only show links for a SSP and not SRPs
            AddSspLinks(options.WebApplicationTargets, FormatRelativeLink(InstallConfiguration.SSPRelativeConfigLink));
              }
        }
コード例 #5
0
 protected internal override void Close(InstallOptions options)
 {
     foreach (WebApplicationInfo info in webApplicationsCheckedListBox.CheckedItems)
     {
         options.WebApplicationTargets.Add(info.Application);
     }
 }
コード例 #6
0
 protected internal override void Open(InstallOptions options)
 {
     Form.PrevButton.Enabled = false;
     if (InstallConfiguration.ShowFinishedControl && Form.Operation == InstallOperation.Install)
     {
         Form.AbortButton.Enabled = false;
     }
 }
コード例 #7
0
        public InstallerForm()
        {
            this.contentControls = new InstallerControlList();
              this.options = new InstallOptions();
              InitializeComponent();

              this.Load += new EventHandler(InstallerForm_Load);
        }
コード例 #8
0
 protected internal override void Open(InstallOptions options)
 {
     Form.PrevButton.Enabled = false;
       if (InstallConfiguration.ShowFinishedControl && Form.Operation == InstallOperation.Install)
       {
     Form.AbortButton.Enabled = false;
       }
 }
コード例 #9
0
        public InstallerForm()
        {
            this.contentControls = new InstallerControlList();
            this.options         = new InstallOptions();
            InitializeComponent();

            this.Load += new EventHandler(InstallerForm_Load);
        }
コード例 #10
0
 protected internal override void Open(InstallOptions options)
 {
     if (!initialized)
       {
     initialized = true;
     if (Form.Operation == InstallOperation.Install)
     {
       AddLinks(options);
     }
       }
       Form.AbortButton.Enabled = true;
 }
コード例 #11
0
 protected internal override void Open(InstallOptions options)
 {
     if (!initialized)
     {
         initialized = true;
         if (Form.Operation == InstallOperation.Install)
         {
             AddLinks(options);
         }
     }
     Form.AbortButton.Enabled = true;
 }
コード例 #12
0
        protected internal override void Open(InstallOptions options)
        {
            if (checks == null)
            {
                Form.NextButton.Enabled = false;
                Form.PrevButton.Enabled = false;

                checks = new SystemCheckList();
                InitializeChecks();

                timer.Interval = 100;
                timer.Tick    += new EventHandler(TimerEventProcessor);
                timer.Start();
            }
        }
        protected internal override void Close(InstallOptions options)
        {
            foreach (TreeNode webAppTreeNode in siteCollectionsTreeView.Nodes)
            {
                // Add the web application as a target
                if (webAppTreeNode.Checked)
                {
                    WebApplicationInfo webAppInfo = webAppTreeNode.Tag as WebApplicationInfo;
                    if (webAppInfo != null)
                    {
                        options.WebApplicationTargets.Add(webAppInfo.Application);

                        ExtendedTreeNode extendedWebAppTreeNode = webAppTreeNode as ExtendedTreeNode;
                        if (extendedWebAppTreeNode != null)
                        {
                            if (!extendedWebAppTreeNode.Populated)
                            {
                                // Add ALL site collections within the web app as targets
                                foreach (SPSite siteCollection in webAppInfo.Application.Sites)
                                {
                                    options.SiteCollectionTargets.Add(siteCollection);
                                }
                            }
                            else
                            {
                                // Add the checked site collections within this web application as targets
                                foreach (TreeNode siteCollTreeNode in webAppTreeNode.Nodes)
                                {
                                    if (siteCollTreeNode.Checked)
                                    {
                                        SiteCollectionInfo siteCollInfo = siteCollTreeNode.Tag as SiteCollectionInfo;
                                        if (siteCollInfo != null)
                                        {
                                            options.SiteCollectionTargets.Add(siteCollInfo.SiteCollection);
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
        protected internal override void Close(InstallOptions options)
        {
            foreach (TreeNode webAppTreeNode in siteCollectionsTreeView.Nodes)
              {
            // Add the web application as a target
            if (webAppTreeNode.Checked)
            {
              WebApplicationInfo webAppInfo = webAppTreeNode.Tag as WebApplicationInfo;
              if (webAppInfo != null)
              {
            options.WebApplicationTargets.Add(webAppInfo.Application);

            ExtendedTreeNode extendedWebAppTreeNode = webAppTreeNode as ExtendedTreeNode;
            if (extendedWebAppTreeNode != null)
            {
              if (!extendedWebAppTreeNode.Populated)
              {
                // Add ALL site collections within the web app as targets
                foreach (SPSite siteCollection in webAppInfo.Application.Sites)
                {
                  options.SiteCollectionTargets.Add(siteCollection);
                }
              }
              else
              {
                // Add the checked site collections within this web application as targets
                foreach (TreeNode siteCollTreeNode in webAppTreeNode.Nodes)
                {
                  if (siteCollTreeNode.Checked)
                  {
                    SiteCollectionInfo siteCollInfo = siteCollTreeNode.Tag as SiteCollectionInfo;
                    if (siteCollInfo != null)
                    {
                      options.SiteCollectionTargets.Add(siteCollInfo.SiteCollection);
                    }
                  }
                }
              }
            }
              }
            }
              }
        }
コード例 #15
0
 protected internal override void Close(InstallOptions options)
 {
     Form.ContentControls.Add(processControl);
 }
コード例 #16
0
 protected internal virtual void Open(InstallOptions options)
 {
 }
コード例 #17
0
 protected internal override void Open(InstallOptions options)
 {
     bool enable = upgradeRadioButton.Checked || removeRadioButton.Checked;
       Form.Operation = InstallOperation.Upgrade;
       Form.NextButton.Enabled = enable;
 }
コード例 #18
0
 protected internal override void Close(InstallOptions options)
 {
     Form.ContentControls.Add(processControl);
 }
コード例 #19
0
 protected internal virtual void Close(InstallOptions options)
 {
 }
コード例 #20
0
 protected internal override void Close(InstallOptions options)
 {
 }