I can delete RCan't delete Registry.LocalMachine
subkeyegistry.LocalMachine subkey using regedit. But not using
code:
RegistryKey eurotaxKey =
Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Firm\A pplication\Eurotax");
eurotaxKey.DeleteSubKey("pathDat");
I am administrator and regedit shows me that 'Administrators' have full
control
on Eurotax key. I've also given 'All users' full control to this key and
still I get System.UnauthorizedException with message "Cannot write to the
registry key".
There's no problem deleting from Registry.CurrentUser.
--
Peri