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

HasAemManagerRegistrySettings() private static method

private static HasAemManagerRegistrySettings ( ) : bool
return bool
        private static bool HasAemManagerRegistrySettings()
        {
            Assembly assembly = Assembly.GetEntryAssembly();
              AssemblyCompanyAttribute attrCompany = (AssemblyCompanyAttribute)assembly.GetCustomAttributes(typeof(AssemblyCompanyAttribute), true)[0];
              AssemblyTitleAttribute attrTitle = (AssemblyTitleAttribute)assembly.GetCustomAttributes(typeof(AssemblyTitleAttribute), true)[0];

              RegistryKey keyUser = Registry.CurrentUser;
              RegistryKey keySoftware = keyUser.OpenSubKey("Software", false);
              RegistryKey keyCompany = keySoftware.OpenSubKey(attrCompany.Company, false);
              if (keyCompany == null) {
            return false;
              }
              RegistryKey keyApplication = keyCompany.OpenSubKey(attrTitle.Title, false);
              if (keyApplication == null) {
            return false;
              }

              RegistryKey keyInstances = keyApplication.OpenSubKey("Instances", false);
              return keyInstances != null;
        }