Skip to content
⌘ NSIS Forum Archive

help with error during compile readregstr

7 posts

edholley#

help with error during compile readregstr

I get the following;
Function: "DetectJRE"
Usage: ReadRegStr $(user_var: output) rootkey subkey entry
root_key=(HKCR|HKLM|HKCU|HKU|HKCC|HKDD|HKPD)
Error in script "stdin" on line 2029 -- aborting creation process

from

ReadRegStr $(TEMP2) HKLM "SOFTWARE\JavaSoft\Java Runtime Environment" "CurrentVerision"

Any ideas?
edholley#
I copied this from an example script to detect installed J2SE.
Does it matter that it is defined?
!define TEMP2 $R1
Joel#
deguix is right, beside, try simple things:

ReadRegStr $0 HKLM "SOFTWARE\JavaSoft\Java Runtime Environment" "CurrentVerision"
If you want your custom variables, see Var instruction.