I am trying to delete some registry key via C#, but to code doesn't effect about the registry, I opened Visual Studio as administrator, I am trying to delete a key located in this path:
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Browser Helper Objects
Here my code:
string RegBHO = "Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Browser Helper Objects";
string guid = "{b908e54f-8c58-4d5d-8762-60d7d675cd39}";
RegistryKey registryKey = Registry.LocalMachine.OpenSubKey(RegBHO, true);
registryKey.DeleteSubKey(guid, false);
But the folder named {b908e54f-8c58-4d5d-8762-60d7d675cd39}
still exist enen after I run the code (I clicked F5 to refresh registry list)