Closed ShaunMaher closed 9 years ago
Hi and thanks for reporting this.
I will looking into into shortly.
Hi @ShaunMaher
Can you run this little check for me?
In the window where you launch your node application, could you please run this command and reply with the output:
echo %userprofile%
Thanks
@ShaunMaher ping :)
@ShaunMaher Closing this issue for now.
Hi.
Apologies in advance if the problem here is me being a dumbass but, using the .list function to get values of type REG_EXPAND_SZ seems to expand the strings as if they were being expanded for the SYSTEM user.
I'm using your fine module to query values from HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders". In regedit these values all contain the place holder "%USERPROFILE%" which should be expanded to "C:\Users\MyUserName\" but are instead being expanded to "C:\Windows\system32\config\systemprofile\". I edited one of the values to give it a value with nothing to expand and it returned the expected value so I'm not accidentally querying the wrong user's HKCU. Running "SET" from the same command prompt that I am launching the node script from shows that the USERPROFILE environment variable is set correctly.
Here is my test script:
and the result:
Let me know if there is any more information I can provide that would be helpful.
Cheers. Shaun.