I want to add/edit registry keys through the C# app.
I tried this, but it doesn't add the key:
Microsoft.Win32.RegistryKey key;
key = Microsoft.Win32.Registry.CurrentUser.CreateSubKey("Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Serialize");
key.SetValue("Startupdelayinmsec", "dword:00000000");
key.Close();
}
the code should add this key:
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Serialize] "Startupdelayinmsec"=dword:00000000
I'm not sure, but possibly it's because it's 64 system while I use Microsoft.Win32.RegistryKey.
Thanks in advance for the help!