Archive: Question about EnumUsersReg


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 ?


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.


It's where the key is loaded. You must load the key somewhere, it doesn't automatically load it to HKU\<sid>.