protected internal override void Close(InstallOptions options) { foreach (WebApplicationInfo info in webApplicationsCheckedListBox.CheckedItems) { options.WebApplicationTargets.Add(info.Application); } }
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)); } }
protected internal override void Open(InstallOptions options) { bool enable = repairRadioButton.Checked || removeRadioButton.Checked; Form.Operation = InstallOperation.Repair; Form.NextButton.Enabled = enable; }
protected internal override void Open(InstallOptions options) { Form.PrevButton.Enabled = false; if (InstallConfiguration.ShowFinishedControl && Form.Operation == InstallOperation.Install) { Form.AbortButton.Enabled = false; } }
public InstallerForm() { this.contentControls = new InstallerControlList(); this.options = new InstallOptions(); InitializeComponent(); this.Load += new EventHandler(InstallerForm_Load); }
protected internal override void Open(InstallOptions options) { if (!initialized) { initialized = true; if (Form.Operation == InstallOperation.Install) { AddLinks(options); } } Form.AbortButton.Enabled = true; }
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) { Form.ContentControls.Add(processControl); }
protected internal virtual void Open(InstallOptions options) { }
protected internal override void Open(InstallOptions options) { bool enable = upgradeRadioButton.Checked || removeRadioButton.Checked; Form.Operation = InstallOperation.Upgrade; Form.NextButton.Enabled = enable; }
protected internal virtual void Close(InstallOptions options) { }
protected internal override void Close(InstallOptions options) { }