Use the first parameter of the batch file instead of the batch file itself to test whether we use the winlauncher.exe or not for the setup and the uninstall.
| | |
| | | "%JAVA_BIN%" org.opends.server.tools.InstallDS -t > NUL 2>&1 |
| | | if not %errorlevel% == 0 goto noValidJavaHome |
| | | |
| | | if %~0 == "" goto callLaunch |
| | | if "%~1" == "" goto callLaunch |
| | | goto callJava |
| | | |
| | | :callLaunch |
| | |
| | | "%JAVA_BIN%" org.opends.server.tools.InstallDS -t > NUL 2>&1 |
| | | if not %errorlevel% == 0 goto noValidJavaHome |
| | | |
| | | if %~0 == "" goto callLaunch |
| | | if "%~1" == "" goto callLaunch |
| | | goto callJava |
| | | |
| | | :callLaunch |