Old 22nd August 2016, 12:52   #1
Lenge
Member
 
Join Date: Oct 2007
Posts: 64
EnumUsersReg and SetRegView

Hello world,

being 32-bit executables, NSIS installers are subject to registry redirection on 64-bit systems. So "HKCU\Software\..." and "HKLM\Software\..." are redirected to "HKCU\Software\Wow6432Node\..." and "HKLM\Software\Wow6432Node\..." unless "SetRegView 64" is used.

But how about the HKU user subkeys, e. g. the temporary user subkey that is used by "EnumUsersReg.nsh"? Is this also subject to redirection, so that "TempKey\Software\..." effectively goes to "TempKey\Software\Wow6432Node\..."? (And, if so, will "SetRegView 64" also disable the redirection here?)

I know I could just try, but I won't have an NSIS machine at hand for some days, and I'm curious.
Lenge is offline   Reply With Quote
Old 13th September 2016, 05:05   #2
Lenge
Member
 
Join Date: Oct 2007
Posts: 64
Lightbulb Answer

Now I had a chance to try... and the answer is NO. Registry access to HKU user subkeys that are adressed via EnumUsersReg is NOT redirected. This holds regardless of the SetRegView setting.

(I'm sharing this just in case that anyone else is interested.)
Lenge is offline   Reply With Quote
Old 7th October 2016, 23:18   #3
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,314
All Wow64 keys are documented @ https://msdn.microsoft.com/en-us/lib...(v=vs.85).aspx but the list only includes HKLM and HKCU.

I guess they forgot about HKU when they implemented this.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 10th October 2016, 23:03   #4
Lenge
Member
 
Join Date: Oct 2007
Posts: 64
Thanks for the MSDN page link!
Lenge is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Tags
registry, wow64

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