ReadRegStr/ReadRegDWORD using variables
I've been working on a NSIS script and have ran into a rather large wall. The problem I have is that my script will not compile because of the following line:
ReadRegStr $4 "$5" "$6" "$7"
I have the quotes to make sure that any spaces contained in those variables will not cause problems.
When I do a DetailPrint of this line, I get the following results:
ReadRegStr REG_SZ "HKLM" "SOFTWARE\NSIS" "C:\Program Files\NSIS"
The reason REG_SZ is assigned to $4 is to get it to this point as a temporary variable.
When I take the output of the detailprint, then put it in my code (after replacing REG_SZ to $4) then the script will compile just fine.
Is there any way to make the ReadRegStr and/or ReadRegDWORD command accept searches based entirely off of variables?
Thanks a ton!
- DF