1707N/A
1707N/A@echo off
1707N/Arem CDDL HEADER START
1707N/Arem
1707N/Arem The contents of this file are subject to the terms of the
1707N/Arem Common Development and Distribution License, Version 1.0 only
1707N/Arem (the "License"). You may not use this file except in compliance
1707N/Arem with the License.
1707N/Arem
6983N/Arem You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
6983N/Arem or http://forgerock.org/license/CDDLv1.0.html.
1707N/Arem See the License for the specific language governing permissions
1707N/Arem and limitations under the License.
1707N/Arem
1707N/Arem When distributing Covered Code, include this CDDL HEADER in each
6983N/Arem file and include the License file at legal-notices/CDDLv1_0.txt.
6983N/Arem If applicable, add the following below this CDDL HEADER, with the
6983N/Arem fields enclosed by brackets "[]" replaced with your own identifying
6983N/Arem information:
1707N/Arem Portions Copyright [yyyy] [name of copyright owner]
1707N/Arem
1707N/Arem CDDL HEADER END
1707N/Arem
1707N/Arem
5072N/Arem Copyright 2006-2010 Sun Microsystems, Inc.
5728N/Arem Portions Copyright 2011-2012 ForgeRock AS
1707N/A
1707N/Asetlocal
1920N/Afor %%i in (%~sf0) do set DIR_HOME=%%~dPsi.
1707N/A
3824N/Aset INSTALL_ROOT=%DIR_HOME%
3824N/Aset INSTANCE_DIR=
6606N/Aif exist "%INSTALL_ROOT%\instance.loc" (
6606N/A set /p INSTANCE_DIR=<%INSTALL_ROOT%\instance.loc
6606N/A) else (
6606N/Aset INSTANCE_DIR=.
3824N/A)
5728N/Aset CUR_DIR=%CD%
3842N/Acd /d %INSTALL_ROOT%
3842N/Acd /d %INSTANCE_DIR%
3824N/Aset INSTANCE_ROOT=%CD%
3842N/Acd /d %CUR_DIR%
1707N/A
2976N/Aset SCRIPT_NAME=uninstall
2650N/A
2976N/Arem Set environment variables
2976N/Aset SCRIPT_UTIL_CMD=set-full-environment-and-test-java
3824N/Acall "%INSTALL_ROOT%\lib\_script-util.bat"
2976N/Aif NOT %errorlevel% == 0 exit /B %errorlevel%
1707N/A
2549N/Aif "%~1" == "" goto callLaunch
2549N/Agoto callJava
2549N/A
2549N/A:callLaunch
5636N/A"%INSTALL_ROOT%\lib\winlauncher.exe" launch "%OPENDJ_JAVA_BIN%" %OPENDJ_JAVA_ARGS% %SCRIPT_NAME_ARG% org.opends.guitools.uninstaller.UninstallLauncher
2549N/Agoto end
2549N/A
2549N/A:callJava
2549N/Aset SCRIPT_NAME_ARG="-Dorg.opends.server.scriptName=uninstall"
5636N/A"%OPENDJ_JAVA_BIN%" %OPENDJ_JAVA_ARGS% %SCRIPT_NAME_ARG% org.opends.guitools.uninstaller.UninstallLauncher %*
1777N/A
1777N/Arem return part
1777N/Aif %errorlevel% == 50 goto version
5072N/Aif NOT %errorlevel% == 0 exit /B %errorlevel%
1707N/Agoto end
1707N/A
1777N/A:version
1777N/Arem version information was requested. Return code should be 0.
1777N/Aexit /B 0
1777N/A
1707N/A:end