views:

154

answers:

2

I have an OS Shell written in 32bit that is replacing the Explorer.exe of a Vista machine. I run a utility which is also written in 32bit, which allows to switch between the Explorer shell and My shell. With some of the machines being 64bit based I can not Alter the HKLM\Microsoft\current\shell Key (short formed reg key). I end up getting intercepted by the WOW64 subkey redirection.. and effectively the changes to the shell key do not take place. Microsofts BS about realtime Redirection is not exactly true. That is one key that does not redirect unless you restart the whole-machine.

So I am looking for a solution to Either UPDATE that redirected key and have it load.

The Shell replacement is a Point of Sales software. My GUI utility will run 32bit command prompts only or batch files run as 32bit..

Can I Execute or call another batch file like a 64bit from a 32bit ?

+3  A: 

Check out MSDN for details on how to access the exact hive you want

The KEY_WOW64_64KEY and KEY_WOW64_32KEY flags enable explicit access to the 64-bit registry view and the 32-bit view, respectively.

Rob Walker
+2  A: 

Take a look at this article on MSDN for Accessing an Alternate Registry View. This should provide a way to modify the 64bit key from a 32bit process, but you will need to write code wither in C or C# (or do it through WMI).

nithins