how to check if registry key exists in c#?
OpenBaseKey(RegistryHive. LocalMachine, RegistryView. Registry64)) using (var key = hklm. OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate")) { if (key == null) { // Doesn't exist... } else { // Exists... } }