public RegistryHandler() { enumVersionOS version = new VersionOS().GetVersion(); string versionString = String.Empty; if (version == enumVersionOS.OS_64_bit) { versionString = @"Wow6432Node\"; } else { // TODO Do not know what is the key for 32 bit } this.regKey = Registry.LocalMachine.OpenSubKey(String.Format(@"Software\{0}Mitel\CSM", versionString), true); this.drvKey = Registry.LocalMachine.OpenSubKey(String.Format(@"Software\{0}Mitel\CSM\Server\TelDriver", versionString), true); this.syncKey = Registry.LocalMachine.OpenSubKey(String.Format(@"Software\{0}Mitel\CSM\Server\TelDriver\Mitel 3300 ICP", versionString), true); }