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)); } }
public InstallerForm() { this.contentControls = new InstallerControlList(); this.options = new InstallOptions(); InitializeComponent(); this.Load += new EventHandler(InstallerForm_Load); }
protected internal override void Open(InstallOptions options) { Form.PrevButton.Enabled = false; if (InstallConfiguration.ShowFinishedControl && Form.Operation == InstallOperation.Install) { Form.AbortButton.Enabled = false; } }
protected internal override void Open(InstallOptions options) { bool enable = repairRadioButton.Checked || removeRadioButton.Checked; Form.Operation = InstallOperation.Repair; Form.NextButton.Enabled = enable; doactivateFeaturesChoice.Checked = Form.WillActivateFeatures; dodeactivateFeaturesChoice.Checked = Form.WillDeactivateFeatures; UpdateDisplay(); }
protected internal override void Open(InstallOptions options) { bool enable = upgradeRadioButton.Checked || removeRadioButton.Checked; Form.Operation = InstallOperation.Upgrade; Form.NextButton.Enabled = enable; doactivateFeaturesChoice.Checked = Form.WillActivateFeatures; dodeactivateFeaturesChoice.Checked = Form.WillDeactivateFeatures; UpdateDisplay(); }
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) { try { SiteLoc siteLoc = new SiteLoc(siteCollection); siteLoc.featureList.AddRange(_featureIds); // add all known features for now (be nice to let user choose) options.SiteCollectionTargets.Add(siteLoc); } finally { // guarantee SPSite is released ASAP even in face of exception siteCollection.Dispose(); } } } 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) { SiteLoc siteLoc = new SiteLoc(siteCollInfo.SiteCollection); siteLoc.featureList.AddRange(_featureIds); // add all known features for now (be nice to let user choose) options.SiteCollectionTargets.Add(siteLoc); } } } } } } } } }
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 virtual void Open(InstallOptions options) { }
protected internal override void Close(InstallOptions options) { }
protected internal override void Open(InstallOptions options) { Form.NextButton.Enabled = acceptCheckBox.Checked; }
protected internal virtual void Close(InstallOptions options) { }
protected internal void CloseControl(InstallOptions options) { Form.DisplayNextTitle(""); Close(options); // pass to descendent class }
protected internal void OpenControl(InstallOptions options) { Form.DisplayNextTitle(this.nextTitle); Open(options); // pass to descendent class }