I've found I should add '' to the quote.
Don't bother with this question any more.
-------------------------------------
I'm very newbie to NSIS.
!define KEYNAME "xxx yyy"
ReadRegStr $0 HKLM '${KEYNAME}' "subkeyname"
Error compile with above line,
Error, "ReadRegStr expects 4 parameters, got 5."
I believe it's caused by the space between xxx and yyy, but the space is one part of the key name.
How to solve that?
Thanks.
ReadRegStr, error compile if the key contains space
3 posts
I tried with code below and it worked fine, with your key/subkey it worked to...
maybe you have to use a " instead a '
maybe you have to use a " instead a '
Greetz Davion
Name "RegPoop"
OutFile "RegPoop.exe"
!define KEYNAME "SOFTWARE\Microsoft\Advanced INF
Setup\IE40.BrowseUI"
Section
ReadRegStr $0 HKLM "${KEYNAME}" "ComponentVersion"
MessageBox MB_OK "$0"
SectionEnd
I've found I should add '' to the quote.-Stu
Don't bother with this question any more.