1RegistryKey key = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\...\...\",true); 2key.SetValue("Name", newValue);