Inheritance: InstallModulesWizardArgs
    public static void OpenToolbox(InstallWizardArgs args)
    {
      if (!InstanceHelperEx.PreheatInstance(args.Instance, args.WizardWindow))
      {
        return;
      }

      InstanceHelperEx.BrowseInstance(args.Instance, args.WizardWindow, "/sitecore/admin", true);
    }
Ejemplo n.º 2
0
        private static void Init(InstallWizardArgs args)
        {
            Assert.ArgumentNotNull(args, nameof(args));

            args.SkipRadControls          = LastTimeOption(nameof(args.SkipRadControls)) ?? !Settings.CoreInstallRadControls.Value;
            args.SkipDictionaries         = LastTimeOption(nameof(args.SkipDictionaries)) ?? !Settings.CoreInstallDictionaries.Value;
            args.PreHeat                  = LastTimeOption(nameof(args.PreHeat)) ?? true;
            args.ServerSideRedirect       = LastTimeOption(nameof(args.ServerSideRedirect)) ?? Settings.CoreInstallNotFoundTransfer.Value;
            args.IncreaseExecutionTimeout = LastTimeOption(nameof(args.IncreaseExecutionTimeout)) ?? !string.IsNullOrEmpty(Settings.CoreInstallHttpRuntimeExecutionTimeout.Value);
        }
    public static void OpenSolution(InstallWizardArgs args)
    {
      if (OpenSolution(args.InstanceRootPath))
      {
        return;
      }

      if (OpenSolution(args.InstanceWebRootPath))
      {
        return;
      }

      throw new Exception("Cannot locate any Visual Studio project files");
    }
 public static void OpenWebsiteFolder(InstallWizardArgs args)
 {
     WindowHelper.OpenFolder(args.InstanceWebRootPath);
 }
 public static void OpenVisualStudio(InstallWizardArgs args)
 {
     new OpenVisualStudioButton().OnClick(args.WizardWindow.Owner, args.Instance);
 }
 public static void OpenSitecoreClient(InstallWizardArgs args)
 {
     InstanceHelperEx.BrowseInstance(args.Instance, args.WizardWindow, "/sitecore", false);
 }
 public static void OpenBrowser(InstallWizardArgs args)
 {
     InstanceHelperEx.BrowseInstance(args.Instance, args.WizardWindow, string.Empty, true);
 }
 public static void BackupInstance(InstallWizardArgs args)
 {
     int id = MainWindowHelper.GetListItemID(args.Instance.ID);
       Assert.IsTrue(id >= 0, "id ({0}) should be >= 0".FormatWith(id));
       WizardPipelineManager.Start("backup", args.WizardWindow, new BackupArgs(args.Instance, null, true, true), null, () => MainWindowHelper.MakeInstanceSelected(id), args.Instance);
 }
 public static void MarkInstanceExclusive(InstallWizardArgs args)
 {
     MarkingManager.MarkSingleInstanceOnly(null, new InstanceData(args.InstanceName, args.InstanceRootPath));
 }
 public static void MarkInstance(InstallWizardArgs args)
 {
     MarkingManager.MarkInstance(null, new InstanceData(args.InstanceName, args.InstanceRootPath));
 }
 public static void PublishSite(InstallWizardArgs args)
 {
   MainWindowHelper.RefreshInstances();
   var instance = InstanceManager.GetInstance(args.InstanceName);
   new PublishButton().OnClick(MainWindow.Instance, instance);
 }
        void IWizardStep.InitializeStep(WizardArgs wizardArgs)
        {
            this.Init();

              this.locationFolder.Text = ProfileManager.Profile.InstancesFolder;
              this.ProductName.DataContext = this.standaloneProducts.GroupBy(p => p.Name);

              var args = (InstallWizardArgs)wizardArgs;
              this.installParameters = args;

              Product product = args.Product;
              if (product != null)
              {
            this.Select(this.ProductName, product.Name);
            this.Select(this.ProductVersion, product.ShortVersion);
            this.Select(this.ProductRevision, product.Revision);
              }
              else
              {
            this.SelectFirst(this.ProductName);
              }

              AppPoolInfo info = args.InstanceAppPoolInfo;
              if (info != null)
              {
            var frameworkValue = info.FrameworkVersion + " " + (info.Enable32BitAppOnWin64 ? "32bit" : string.Empty);
            this.SelectByValue(this.NetFramework, frameworkValue);
            this.SelectByValue(this.Mode, info.ManagedPipelineMode ? "Integrated" : "Classic");
              }

              string name = args.InstanceName;
              if (!string.IsNullOrEmpty(name))
              {
            this.InstanceName.Text = name;
              }

              string rootName = args.InstanceRootName;
              if (!string.IsNullOrEmpty(rootName))
              {
            this.RootName.Text = rootName;
              }

              string host = args.InstanceHost;

              if (!string.IsNullOrEmpty(host))
              {
            this.HostName.Text = host;
              }

              if (rootName != null)
              {
            string location = args.InstanceRootPath.TrimEnd(rootName).Trim(new[]
            {
              '/', '\\'
            });
            if (!string.IsNullOrEmpty(location))
            {
              this.locationFolder.Text = location;
            }
              }
        }
 public static void OpenWebsiteFolder(InstallWizardArgs args)
 {
     CoreApp.OpenFolder(args.InstanceWebRootPath);
 }