Migrated the Windows registry code