Remove unneeded file
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114197 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
1 parent
398dbe4127
commit
f856dc9576
1 file changed
-38
@@ -1,38 +0,0 @@
|
||||
;
|
||||
; Found in the NSIS Archives http://nsis.sourceforge.net/archive/nsisweb.php?page=326&instances=0,64
|
||||
;
|
||||
Function GetJRE
|
||||
;
|
||||
; Find JRE (Java.exe)
|
||||
; 1 - in .\jre directory (JRE Installed with application)
|
||||
; 2 - in JAVA_HOME environment variable
|
||||
; 3 - in the registry
|
||||
; 4 - assume java.exe in current dir or PATH
|
||||
|
||||
Push $R0
|
||||
Push $R1
|
||||
|
||||
ClearErrors
|
||||
StrCpy $R0 "$EXEDIR\jre\bin\java.exe"
|
||||
IfFileExists $R0 JreFound
|
||||
StrCpy $R0 ""
|
||||
|
||||
ClearErrors
|
||||
ReadEnvStr $R0 "JAVA_HOME"
|
||||
StrCpy $R0 "$R0\bin\java.exe"
|
||||
IfErrors 0 JreFound
|
||||
|
||||
ClearErrors
|
||||
ReadRegStr $R1 HKLM "SOFTWARE\JavaSoft\Java Runtime Environment"
|
||||
"CurrentVersion"
|
||||
ReadRegStr $R0 HKLM "SOFTWARE\JavaSoft\Java Runtime Environment\$R1"
|
||||
"JavaHome"
|
||||
StrCpy $R0 "$R0\bin\java.exe"
|
||||
|
||||
IfErrors 0 JreFound
|
||||
StrCpy $R0 "java.exe"
|
||||
|
||||
JreFound:
|
||||
Pop $R1
|
||||
Exch $R0
|
||||
FunctionEnd
|
||||
Reference in new issue
Block a user