thek
4th April 2007 13:17 UTC
Question about EnumUsersReg
Hello
I'm using EnumUsersReg and everything works fine
But I'm a little bit curios
Why I need two parameters for calling ${EnumUsersReg} ??
What is the resason for the second parameter (SUBKEY) ??
I tried to understand the code, but I don't get it :igor:
somebody has a hint ?
dienjd
4th April 2007 18:34 UTC
From http://nsis.sourceforge.net/EnumUsersReg , it looks like the second parameter is passed along to the call to RegLoadKey, where that parameter is required. It's also what gets popped off the stack in the callback function and points to the HKU "$subkey\Software\..." registry key.
kichik
8th April 2007 16:02 UTC
It's where the key is loaded. You must load the key somewhere, it doesn't automatically load it to HKU\<sid>.