Hi there i am modifying windows registry it works very well on windows XP but dosenot work on win 7 64 bit it only changes once never again.
I posted question and no answer was found and was wondering that if the following statement is the root cause of trouble
Microsoft.Win32.Registry registry = Microsoft.Win32.Registry.CurrentUser.OpenSubKey(
"HKEY_LOCAL_MACHINE\\Software\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Internet Settings",
true);
now here i am changing 64 bit registry but using Microsoft.Win32.RegistryKey
it may not work on 64 bit.
any solutions for changing registry on 64 bit machine
You can’t write to that part of the registry without admin rights which you don’t have with UAC. It works in XP because you presumably run as an admin there.
You may also need to account for registry redirection.