Archive: Executing reg.exe on 64bit OS


Executing reg.exe on 64bit OS
Hey,


I'm using my installer on WindowsXP Professional 64bit and need to export and import some nodes of the 64bit registry view. Therefor I'm calling '$WINDIR\SysWOW64\reg.exe export [...]' using ExecCmd::exec. Unfortunately it alyways exports the 32bit nodes. Is there anything I can do?


Thanks! :)


~CJ


"$WINDIR\SysWOW64\reg.exe" is the 32bit version..

To access the 64bit registry nodes you need to use 64bit version at "$WINDIR\system32\reg.exe"


Thanks. :)
But I'm a little bit confused... It works using the system32\reg.exe, but why is the 64bit version contained in the 32 bit directory? o.O

And how can I access the system32 dir properly. I kind of have the feeling, disabling the Windows file system redirection using x64.nsh only works for the 'File' command, doesn't it?


But I'm a little bit confused... It works using the system32\reg.exe, but why is the 64bit version contained in the 32 bit directory? o.O
It may be counterintuitive, but on x64 Windows "system32" is the 64 bit system directory. Anything with WOW64 in its name is the 32 bit version. WOW64 stands for "(32 bits) Windows On Windows x64".

Yeah, for me it's not counterintuitive, but your explanation is consistent. ;) Thank you! :)