Archive: please help


please help
i am very new to nsis and installers at all. and all i can say: nsis is great!

but i have a little problem
i want to check if jre is installed on the computer and my code looks like this:


;Installer Sections

Section "JRE 1.4.1 (required)" SecJRE

ClearErrors
ReadRegStr $1 HKLM "SOFTWARE\JavaSoft\Java Runtime Enviroment" "CurrentVersion"
IfErrors install keep

keep:
MessageBox MB_YESNO|MB_ICONQUESTION|MB_DEFBUTTON1 "JRE detected. Keep installed version?" IDYES skip IDNO install

install:
SectionIn 1 2 3 4 5
SetOutPath $INSTDIR\jre
File /r \\lnzp103a\projekte\temppo\tools\j2sdk1.4.1\jre\*.*
StrCpy $0 '-Dsun.java2d.noddraw -Djava.util.logging.config.file=logging.properties'
;Uninstaller
WriteUninstaller uninst-temppo.exe

skip:
SectionEnd


i can compile the script without any problems, but it doesn't show the message box even though i have jre on my computer
does anybody know why?
thank you!

sorry... i typed something wrong...
problem is solved, nsis is great :D


hm?!
sorry to bother you again, but i have a problem.
i've jre installed on my computer (yes - i'm sure about that ;) ) but


ReadRegStr $1 HKLM "SOFTWARE\JavaSoft\Java Runtime Enviroment" "CurrentVersion"
MessageBox MB_OK "$1"

returns an empty string.... *wonder*

I don't have this key in my registry and I have JRE installed. Use regedit to make sure you're trying to read the right key.


It's Environment not Enviroment

-Stu :)


ooooops
now that is embarassing. i made the same mistake twice. soo sorry to bother you.