AEMManager.Util.RegistryMigration.CheckForLegacyRegistrySettings C# (CSharp) Method

CheckForLegacyRegistrySettings() public static method

Checks if legacy registry settings from predecessor of AEM manager exists, and ask if they should be migrated to AEM manager.
public static CheckForLegacyRegistrySettings ( ) : void
return void
        public static void CheckForLegacyRegistrySettings()
        {
            // check if registry key for AEM manager already exists - skip migration then
              if (HasAemManagerRegistrySettings()) {
            return;
              }

              // check if registry key for predecessor exists - aks for migration then
              RegistryKey oldSettings = GetPredecessorRegistrySettings();
              if (oldSettings != null) {
            if (MessageBox.Show("Existing settings from CQ Manager 1.x found. Press OK to migrate them to AEM Manager, Cancel to ignore them.",
            "Migration settings from CQ Manager", MessageBoxButtons.OKCancel, MessageBoxIcon.Exclamation) == DialogResult.OK) {
              MigrateSettings(oldSettings);
            }
              }
        }