Skip to content
⌘ NSIS Forum Archive

EnumUsersReg and SetRegView

4 posts

Lenge#

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#
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.)
Anders#
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.