From: kkolinko Date: Thu, 11 Nov 2010 09:40:26 +0000 (+0000) Subject: Folloup to 1027504: X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=8c044ad4cd7c5a77729bb19523f602da24b60119;p=tomcat7.0 Folloup to 1027504: NSIS docs say that using relative offset in Goto does not play well with macros, because those may be expanded into several lines. Use a label instead. git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1033856 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/res/tomcat.nsi b/res/tomcat.nsi index 51903e798..9dda07962 100644 --- a/res/tomcat.nsi +++ b/res/tomcat.nsi @@ -465,11 +465,12 @@ FunctionEnd ; 64-bit JVMs, also determines if it is x64 or ia64 Function checkJava - IfSilent +3 + IfSilent SilentFindJavaHome !insertmacro MUI_INSTALLOPTIONS_READ $5 "jvm.ini" "Field 2" "State" Goto TestJavaHome ; Silent install so try and find JavaHome from registry +SilentFindJavaHome: Call findJavaHome Pop $5 @@ -568,7 +569,7 @@ FunctionEnd ; ==================== ; ; Find the full JVM path, and put the result on top of the stack -; Argument: JVM base path (result of findJavaHome) +; Implicit argument: $JavaHome ; Will return an empty string if the path cannot be determined ; Function findJVMPath