The following code is not working for me:
public bool createRegistry() { if (!registryExists()) { Microsoft.Win32.Registry.LocalMachine.Creat
Even when admin I don't think you can create new keys off LocalMachine. Make sure that you do
Registry.LocalMachine.CreateSubKey(@"SOFTWARE\YourCompanyName\SomeNewKey");
and not
Registry.LocalMachine.CreateSubKey("SomeNewKey");