# HG changeset patch # User Anirudha Bose # Date 1374707180 -19800 # Node ID 13fb1dd3925040a5dc87ab364390e12d9c8dda89 # Parent d202f8eb8c2f56f4661b293f482ac77fd97a6988 makeinst-script.sh: Removed checking of JRE locally diff --git a/makeinst-script.sh b/makeinst-script.sh --- a/makeinst-script.sh +++ b/makeinst-script.sh @@ -34,8 +34,6 @@ !define INSTALLER_NAME "octave-installer.exe" !define MAIN_APP_EXE "octave.exe" !define INSTALL_TYPE "SetShellVarContext current" -!define CLASSPATH ".;lib;lib\myJar" -!define CLASS "org.me.myProgram" !define PRODUCT_ROOT_KEY "HKLM" !define PRODUCT_KEY "Software\Octave" @@ -196,9 +194,8 @@ ; Function to check Java Runtime Environment Function CheckJRE ; looks in: -; 1 - .\jre directory (JRE Installed with application) -; 2 - JAVA_HOME environment variable -; 3 - the registry +; 1 - JAVA_HOME environment variable +; 2 - the registry Push \$R0 Push \$R1 @@ -208,21 +205,16 @@ !define JAVAEXE "javaw.exe" ClearErrors - StrCpy \$R0 "\$EXEDIR\jre\bin\\\${JAVAEXE}" - IfFileExists \$R0 continue ;; 1) found it locally - StrCpy \$R0 "" - - ClearErrors ReadEnvStr \$R0 "JAVA_HOME" StrCpy \$R0 "\$R0\bin\\\${JAVAEXE}" - IfErrors 0 continue ;; 2) found it in JAVA_HOME + IfErrors 0 continue ;; 1) found it in JAVA_HOME ClearErrors ReadRegStr \$R1 HKLM "SOFTWARE\JavaSoft\Java Runtime Environment" "CurrentVersion" ReadRegStr \$R0 HKLM "SOFTWARE\JavaSoft\Java Runtime Environment\\\$R1" "JavaHome" StrCpy \$R0 "\$R0\bin\\\${JAVAEXE}" - IfErrors 0 continue ;; 3) found it in the registry + IfErrors 0 continue ;; 2) found it in the registry IfErrors JRE_Error JRE_Error: