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);
}
}
}