From d805a36cc67fa38d11eda2f09f661ba21c6add70 Mon Sep 17 00:00:00 2001
From: lutoff <lutoff@localhost>
Date: Tue, 10 Jul 2007 08:00:47 +0000
Subject: [PATCH] fix for issue #1865 (upgrade -V error) In case on -V option, BuildExtractor will exit with a pre-defined return code defined in QuickSetupCli.java (let's say 50). Script will test this specific return value to check if the non-null return code is an error. In case of none null return code, the upgradeLauncher will not be called. 

---
 opends/resource/uninstall.bat |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/opends/resource/uninstall.bat b/opends/resource/uninstall.bat
index fe5c57f..3429073 100644
--- a/opends/resource/uninstall.bat
+++ b/opends/resource/uninstall.bat
@@ -77,6 +77,13 @@
 
 :callJava
 "%JAVA_BIN%" %JAVA_ARGS% org.opends.quicksetup.uninstaller.UninstallLauncher %*
+
+rem return part
+if %errorlevel% == 50 goto version
 goto end
 
+:version
+rem version information was requested. Return code should be 0.
+exit /B 0
+
 :end

--
Gitblit v1.10.0