1 ; nntp//rss application launcher
3 ; Jelude launcher - http://www.sfu.ca/~tyuen/jelude/
4 ; Java Launcher http://nsis.sourceforge.net/archive/nsisweb.php?page=326&instances=0,64
5 ;--------- CONFIGURATION ---------
7 !define APPNAME
"nntp//rss"
8 !define JARFILE
"nntprss-start.jar"
10 ;Uncomment the next line to specify an icon for the EXE.
13 ;---------------------------------
29 StrCpy $R0 '$R0 -jar "${JARFILE}" $R1'
35 Function GetParameters
45 StrCpy $R0 $CMDLINE 1 $R2
52 StrCpy $R0 $CMDLINE 1 $R2
54 StrCpy $R0 $CMDLINE "" $R2
63 ; 1 - in .\jre directory (JRE Installed with application)
64 ; 2 - in JAVA_HOME environment variable
66 ; 4 - assume java.exe in current dir or PATH
71 StrCpy $R0 "$EXEDIR\jre\bin\javaw.exe"
72 IfFileExists $R0 JreFound
76 ReadEnvStr $R0 "JAVA_HOME"
77 StrCpy $R0 "$R0\bin\javaw.exe"
81 ReadRegStr $R1 HKLM "SOFTWARE\JavaSoft\Java Runtime Environment" "CurrentVersion"
82 ReadRegStr $R0 HKLM "SOFTWARE\JavaSoft\Java Runtime Environment\$R1" "JavaHome"
83 StrCpy $R0 "$R0\bin\javaw.exe"
87 MessageBox MB_ICONEXCLAMATION|
MB_YESNO \
88 'Could not find a Java Runtime Environment installed on your computer. \
89 $\nWithout it you cannot run "${APPNAME}". \
90 $\n$\nWould you like to visit the Java website to download it?' \
92 ExecShell open
"http://java.sun.com/getjava"