From ea9b9e87abcf36995a52d271ae34e792653fd696 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Wed, 19 Sep 2007 14:40:07 +0000
Subject: [PATCH] After some discussions it has been decided to merge the setup and uninstall commands so that we have the behavior that we had before.  So with this changes, in order to work in CLI mode the option --cli must be specified. 

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

diff --git a/opends/resource/uninstall.bat b/opends/resource/uninstall.bat
index 6bd7008..c1c53e5 100644
--- a/opends/resource/uninstall.bat
+++ b/opends/resource/uninstall.bat
@@ -68,7 +68,15 @@
 "%JAVA_BIN%" org.opends.server.tools.InstallDS -t > NUL 2>&1
 if not %errorlevel% == 0 goto noValidJavaHome
 
-set SCRIPT_NAME_ARG="-Dorg.opends.server.scriptName=uninstall.bat"
+if "%~1" == "" goto callLaunch
+goto callJava
+
+:callLaunch
+"%DIR_HOME%\lib\winlauncher.exe" launch "%JAVA_BIN%" %JAVA_ARGS% org.opends.guitools.uninstaller.UninstallLauncher
+goto end
+
+:callJava
+set SCRIPT_NAME_ARG="-Dorg.opends.server.scriptName=uninstall"
 "%JAVA_BIN%" %JAVA_ARGS% org.opends.guitools.uninstaller.UninstallLauncher %*
 
 rem return part

--
Gitblit v1.10.0