I am trying to write to the registry and the objects that are suppose to be
handling this function are not working. Here is what is happening.
I am issuing the following commands:
RegistryKey reg;
reg = Registry.Curren tUser.CreateSub Key("Software\\ SofTek
Software\\SSILi cense\\Settings ");
reg = Registry.Curren tUser.OpenSubKe y("Software\\my key\\mysubkey\\ Settings",
true);
reg.SetValue("D BPath", "c:\\temp") ;
when I execute these lines, the function does write to the registry,
however, it does not write to HKEY_Current_Us er. Its writing to HKEY_USER.
There are no entries at all in CurrentUser like the command suggests that
its writing to.
Can anyone help me with this as its been a real pain. I do this sort of
thing in Delphi everyday and have never had any problems. Can C# not work
with the registry? NOTE: I've also tried writing to other keys such as
HKEY_LOCAL_MACH INE but it doesn't write to the registry at all when I use
it.
Its not an authorization issue as I'm currently logged in as ADMINISTRATOR
while running these tests...
Thanks,
glenn