uninstall.bat revision 5072
0N/A
2122N/A@echo off
0N/Arem CDDL HEADER START
0N/Arem
0N/Arem The contents of this file are subject to the terms of the
0N/Arem Common Development and Distribution License, Version 1.0 only
0N/Arem (the "License"). You may not use this file except in compliance
0N/Arem with the License.
0N/Arem
0N/Arem You can obtain a copy of the license at
0N/Arem trunk/opends/resource/legal-notices/OpenDS.LICENSE
0N/Arem or https://OpenDS.dev.java.net/OpenDS.LICENSE.
0N/Arem See the License for the specific language governing permissions
0N/Arem and limitations under the License.
0N/Arem
0N/Arem When distributing Covered Code, include this CDDL HEADER in each
0N/Arem file and include the License file at
0N/Arem trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
1472N/Arem add the following below this CDDL HEADER, with the fields enclosed
1472N/Arem by brackets "[]" replaced with your own identifying information:
1472N/Arem Portions Copyright [yyyy] [name of copyright owner]
0N/Arem
0N/Arem CDDL HEADER END
0N/Arem
1879N/Arem
1879N/Arem Copyright 2006-2010 Sun Microsystems, Inc.
1879N/A
1879N/Asetlocal
1879N/Afor %%i in (%~sf0) do set DIR_HOME=%%~dPsi.
1879N/A
1879N/Aset INSTALL_ROOT=%DIR_HOME%
1879N/Aset INSTANCE_DIR=
1879N/Afor /f "delims=" %%a in (%INSTALL_ROOT%\instance.loc) do (
1879N/A set INSTANCE_DIR=%%a
1879N/A)
1879N/Aset CUR_DIR=%~dp0
1879N/Acd /d %INSTALL_ROOT%
1879N/Acd /d %INSTANCE_DIR%
1879N/Aset INSTANCE_ROOT=%CD%
1879N/Acd /d %CUR_DIR%
1879N/A
1879N/Aset SCRIPT_NAME=uninstall
1879N/A
1879N/Arem Set environment variables
1879N/Aset SCRIPT_UTIL_CMD=set-full-environment-and-test-java
1879N/Acall "%INSTALL_ROOT%\lib\_script-util.bat"
1879N/Aif NOT %errorlevel% == 0 exit /B %errorlevel%
3863N/A
1879N/Aif "%~1" == "" goto callLaunch
1879N/Agoto callJava
1879N/A
1879N/A:callLaunch
1879N/A"%INSTALL_ROOT%\lib\winlauncher.exe" launch "%OPENDS_JAVA_BIN%" %OPENDS_JAVA_ARGS% %SCRIPT_NAME_ARG% org.opends.guitools.uninstaller.UninstallLauncher
1879N/Agoto end
1879N/A
1879N/A:callJava
1879N/Aset SCRIPT_NAME_ARG="-Dorg.opends.server.scriptName=uninstall"
1879N/A"%OPENDS_JAVA_BIN%" %OPENDS_JAVA_ARGS% %SCRIPT_NAME_ARG% org.opends.guitools.uninstaller.UninstallLauncher %*
1879N/A
1879N/Arem return part
1879N/Aif %errorlevel% == 50 goto version
1879N/Aif NOT %errorlevel% == 0 exit /B %errorlevel%
1879N/Agoto end
2796N/A
2796N/A:version
2796N/Arem version information was requested. Return code should be 0.
2796N/Aexit /B 0
0N/A
0N/A:end
0N/A