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
8cf870d281dc8c242f083d14dfef05f24aa5fceeJnRouvignacrem You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
8cf870d281dc8c242f083d14dfef05f24aa5fceeJnRouvignacrem or http://forgerock.org/license/CDDLv1.0.html.
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
8cf870d281dc8c242f083d14dfef05f24aa5fceeJnRouvignacrem file and include the License file at legal-notices/CDDLv1_0.txt.
8cf870d281dc8c242f083d14dfef05f24aa5fceeJnRouvignacrem If applicable, add the following below this CDDL HEADER, with the
8cf870d281dc8c242f083d14dfef05f24aa5fceeJnRouvignacrem fields enclosed by brackets "[]" replaced with your own identifying
8cf870d281dc8c242f083d14dfef05f24aa5fceeJnRouvignacrem 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
551c6d67504b98cefa6ea28db383787d7669fdcaludovicprem Copyright 2006-2010 Sun Microsystems, Inc.
eda9271a828f0d377d046417a788830fd74d7ab3ludorem Portions Copyright 2011-2012 ForgeRock AS
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=
7f22d858bbecbd1fbd35d538918624d31455506eludoif exist "%INSTALL_ROOT%\instance.loc" (
7f22d858bbecbd1fbd35d538918624d31455506eludo set /p INSTANCE_DIR=<%INSTALL_ROOT%\instance.loc
7f22d858bbecbd1fbd35d538918624d31455506eludo) else (
7f22d858bbecbd1fbd35d538918624d31455506eludoset INSTANCE_DIR=.
014019918f7e3844f558f6159b8d41517254edc2lutoff)
eda9271a828f0d377d046417a788830fd74d7ab3ludoset CUR_DIR=%CD%
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
0f8553e2af5fc49a510ecfcfc93e66d06713f631ludo"%INSTALL_ROOT%\lib\winlauncher.exe" launch "%OPENDJ_JAVA_BIN%" %OPENDJ_JAVA_ARGS% %SCRIPT_NAME_ARG% org.opends.guitools.uninstaller.UninstallLauncher
b26e36d8a08a1c775531659c04abc3d4ed504139jvergaragoto end
b26e36d8a08a1c775531659c04abc3d4ed504139jvergara
b26e36d8a08a1c775531659c04abc3d4ed504139jvergara:callJava
b26e36d8a08a1c775531659c04abc3d4ed504139jvergaraset SCRIPT_NAME_ARG="-Dorg.opends.server.scriptName=uninstall"
0f8553e2af5fc49a510ecfcfc93e66d06713f631ludo"%OPENDJ_JAVA_BIN%" %OPENDJ_JAVA_ARGS% %SCRIPT_NAME_ARG% org.opends.guitools.uninstaller.UninstallLauncher %*
da7ab15aee42edf1c4ff33f66ca717f019b4a578lutoff
da7ab15aee42edf1c4ff33f66ca717f019b4a578lutoffrem return part
da7ab15aee42edf1c4ff33f66ca717f019b4a578lutoffif %errorlevel% == 50 goto version
551c6d67504b98cefa6ea28db383787d7669fdcaludovicpif NOT %errorlevel% == 0 exit /B %errorlevel%
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