uninstall.bat revision 37a25ab1d035846566ce9dfa221601de894a2c28
1fb669628faa2eb90d370eb249980b3a1807babaneil_a_wilson
1fb669628faa2eb90d370eb249980b3a1807babaneil_a_wilson@echo off
1fb669628faa2eb90d370eb249980b3a1807babaneil_a_wilsonrem CDDL HEADER START
1fb669628faa2eb90d370eb249980b3a1807babaneil_a_wilsonrem
1fb669628faa2eb90d370eb249980b3a1807babaneil_a_wilsonrem The contents of this file are subject to the terms of the
1fb669628faa2eb90d370eb249980b3a1807babaneil_a_wilsonrem Common Development and Distribution License, Version 1.0 only
1fb669628faa2eb90d370eb249980b3a1807babaneil_a_wilsonrem (the "License"). You may not use this file except in compliance
1fb669628faa2eb90d370eb249980b3a1807babaneil_a_wilsonrem with the License.
1fb669628faa2eb90d370eb249980b3a1807babaneil_a_wilsonrem
1fb669628faa2eb90d370eb249980b3a1807babaneil_a_wilsonrem You can obtain a copy of the license at
1fb669628faa2eb90d370eb249980b3a1807babaneil_a_wilsonrem trunk/opends/resource/legal-notices/OpenDS.LICENSE
1fb669628faa2eb90d370eb249980b3a1807babaneil_a_wilsonrem or https://OpenDS.dev.java.net/OpenDS.LICENSE.
1fb669628faa2eb90d370eb249980b3a1807babaneil_a_wilsonrem See the License for the specific language governing permissions
1fb669628faa2eb90d370eb249980b3a1807babaneil_a_wilsonrem and limitations under the License.
1fb669628faa2eb90d370eb249980b3a1807babaneil_a_wilsonrem
1fb669628faa2eb90d370eb249980b3a1807babaneil_a_wilsonrem When distributing Covered Code, include this CDDL HEADER in each
1fb669628faa2eb90d370eb249980b3a1807babaneil_a_wilsonrem file and include the License file at
1fb669628faa2eb90d370eb249980b3a1807babaneil_a_wilsonrem trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
1fb669628faa2eb90d370eb249980b3a1807babaneil_a_wilsonrem add the following below this CDDL HEADER, with the fields enclosed
1fb669628faa2eb90d370eb249980b3a1807babaneil_a_wilsonrem by brackets "[]" replaced with your own identifying information:
1fb669628faa2eb90d370eb249980b3a1807babaneil_a_wilsonrem Portions Copyright [yyyy] [name of copyright owner]
1fb669628faa2eb90d370eb249980b3a1807babaneil_a_wilsonrem
1fb669628faa2eb90d370eb249980b3a1807babaneil_a_wilsonrem CDDL HEADER END
1fb669628faa2eb90d370eb249980b3a1807babaneil_a_wilsonrem
1fb669628faa2eb90d370eb249980b3a1807babaneil_a_wilsonrem
a3d3ab94806056d2355afea6fe8daac41059b9fbludovicprem Copyright 2006-2008 Sun Microsystems, Inc.
1fb669628faa2eb90d370eb249980b3a1807babaneil_a_wilson
1fb669628faa2eb90d370eb249980b3a1807babaneil_a_wilsonsetlocal
2f0f7926326cc76419b074fd91a589cb68980ffbduganfor %%i in (%~sf0) do set DIR_HOME=%%~dPsi.
1fb669628faa2eb90d370eb249980b3a1807babaneil_a_wilson
014019918f7e3844f558f6159b8d41517254edc2lutoffset INSTALL_ROOT=%DIR_HOME%
014019918f7e3844f558f6159b8d41517254edc2lutoffset INSTANCE_DIR=
014019918f7e3844f558f6159b8d41517254edc2lutofffor /f "delims=" %%a in (%INSTALL_ROOT%\instance.loc) do (
014019918f7e3844f558f6159b8d41517254edc2lutoff set INSTANCE_DIR=%%a
014019918f7e3844f558f6159b8d41517254edc2lutoff)
014019918f7e3844f558f6159b8d41517254edc2lutoffset CUR_DIR=%~dp0
37a25ab1d035846566ce9dfa221601de894a2c28lutoffcd /d %INSTALL_ROOT%
37a25ab1d035846566ce9dfa221601de894a2c28lutoffcd /d %INSTANCE_DIR%
014019918f7e3844f558f6159b8d41517254edc2lutoffset INSTANCE_ROOT=%CD%
37a25ab1d035846566ce9dfa221601de894a2c28lutoffcd /d %CUR_DIR%
1fb669628faa2eb90d370eb249980b3a1807babaneil_a_wilson
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergaraset SCRIPT_NAME=uninstall
37f9a536593b696e5a3dcec443e1475f22fb5afdjvergara
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergararem Set environment variables
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergaraset SCRIPT_UTIL_CMD=set-full-environment-and-test-java
014019918f7e3844f558f6159b8d41517254edc2lutoffcall "%INSTALL_ROOT%\lib\_script-util.bat"
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergaraif NOT %errorlevel% == 0 exit /B %errorlevel%
1fb669628faa2eb90d370eb249980b3a1807babaneil_a_wilson
b26e36d8a08a1c775531659c04abc3d4ed504139jvergaraif "%~1" == "" goto callLaunch
b26e36d8a08a1c775531659c04abc3d4ed504139jvergaragoto callJava
b26e36d8a08a1c775531659c04abc3d4ed504139jvergara
b26e36d8a08a1c775531659c04abc3d4ed504139jvergara:callLaunch
014019918f7e3844f558f6159b8d41517254edc2lutoff"%INSTALL_ROOT%\lib\winlauncher.exe" launch "%OPENDS_JAVA_BIN%" %OPENDS_JAVA_ARGS% %SCRIPT_NAME_ARG% org.opends.guitools.uninstaller.UninstallLauncher
b26e36d8a08a1c775531659c04abc3d4ed504139jvergaragoto end
b26e36d8a08a1c775531659c04abc3d4ed504139jvergara
b26e36d8a08a1c775531659c04abc3d4ed504139jvergara:callJava
b26e36d8a08a1c775531659c04abc3d4ed504139jvergaraset SCRIPT_NAME_ARG="-Dorg.opends.server.scriptName=uninstall"
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergara"%OPENDS_JAVA_BIN%" %OPENDS_JAVA_ARGS% %SCRIPT_NAME_ARG% org.opends.guitools.uninstaller.UninstallLauncher %*
da7ab15aee42edf1c4ff33f66ca717f019b4a578lutoff
da7ab15aee42edf1c4ff33f66ca717f019b4a578lutoffrem return part
da7ab15aee42edf1c4ff33f66ca717f019b4a578lutoffif %errorlevel% == 50 goto version
1fb669628faa2eb90d370eb249980b3a1807babaneil_a_wilsongoto end
1fb669628faa2eb90d370eb249980b3a1807babaneil_a_wilson
da7ab15aee42edf1c4ff33f66ca717f019b4a578lutoff:version
da7ab15aee42edf1c4ff33f66ca717f019b4a578lutoffrem version information was requested. Return code should be 0.
da7ab15aee42edf1c4ff33f66ca717f019b4a578lutoffexit /B 0
da7ab15aee42edf1c4ff33f66ca717f019b4a578lutoff
1fb669628faa2eb90d370eb249980b3a1807babaneil_a_wilson:end