Exemple #1
0
 private void SetInstallationConfiguration()
 {
     if (runtimeSetup.InstallationConfiguration == null)
     {
         runtimeSetup.InstallationConfiguration = InstallationConfiguration.LoadFromRegistry();
     }
 }
        private void PathPreferencePane_Load(object sender, EventArgs e)
        {
            configuration = InstallationConfiguration.LoadFromRegistry();

            runtimePathTextBox.Text = configuration.InstallationFolder;

            foreach (string path in configuration.AdditionalPluginDirectories)
                pluginPathListBox.Items.Add(path);
            UpdateRemovePluginPathButtonVisibility();
        }
Exemple #3
0
        /// <summary>
        /// Loads the configuration from the registry.
        /// </summary>
        /// <returns>The installed configuration.</returns>
        public static InstallationConfiguration LoadFromRegistry()
        {
            InstallationConfiguration configuration = new InstallationConfiguration();

            foreach (Pair <RegistryKey, string> pair in RootKeys)
            {
                configuration.LoadFromRegistry(pair.First, pair.Second);
            }

            return(configuration);
        }
        /// <summary>
        /// Loads the configuration from the registry.
        /// </summary>
        /// <returns>The installed configuration.</returns>
        public static InstallationConfiguration LoadFromRegistry()
        {
            InstallationConfiguration configuration = new InstallationConfiguration();

            foreach (Pair<RegistryKey, string> pair in RootKeys)
                configuration.LoadFromRegistry(pair.First, pair.Second);

            return configuration;
        }