Old 13th January 2010, 08:43   #1
ChocJunkie
Senior Member
 
Join Date: Oct 2009
Location: Germany
Posts: 120
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
ChocJunkie is offline   Reply With Quote
Old 13th January 2010, 15:59   #2
Zinthose
Senior Member
 
Join Date: May 2009
Posts: 152
"$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"
Zinthose is offline   Reply With Quote
Old 14th January 2010, 07:51   #3
ChocJunkie
Senior Member
 
Join Date: Oct 2009
Location: Germany
Posts: 120
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?
ChocJunkie is offline   Reply With Quote
Old 14th January 2010, 08:58   #4
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
Quote:
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".
MSG is offline   Reply With Quote
Old 14th January 2010, 09:04   #5
ChocJunkie
Senior Member
 
Join Date: Oct 2009
Location: Germany
Posts: 120
Yeah, for me it's not counterintuitive, but your explanation is consistent. Thank you!
ChocJunkie is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump