From 8c044ad4cd7c5a77729bb19523f602da24b60119 Mon Sep 17 00:00:00 2001 From: kkolinko Date: Thu, 11 Nov 2010 09:40:26 +0000 Subject: [PATCH] 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 --- res/tomcat.nsi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.11.0