Archive: ReadRegStr problem


ReadRegStr problem
Hi,
I'm having a little problem and I can't see the solution (which should be, I guess, pretty straightforward):


!define SHELLFOLDERS "Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders"

[...]

Function un.RemoveSettings

ReadRegStr $1 HKCU ${SHELLFOLDERS} "Local AppData"
StrCmp $1 "" noLocalAppData
RMDir /r "$1\CompanyName\ProductName"

noLocalAppData:

FunctionEnd


Returns this error:
ReadRegStr expects 4 parameters, got 5

ReadRegStr $1 HKCU "${SHELLFOLDERS}" "Local AppData"

SHELLFOLDERS has spaces in it, thus is passing as two parameters instead of one.

-Stu