anchor.diff:  SETLOCAL EnableDelayedExpansion
   if "%~1" == "" goto show_instructions
   SET WIPERDOG_HOME=%~1
  -echo Param %WIPERDOG_HOME% "%~1"
  -
   REM Check OS 64 bit or 32 bit
   if "%PROCESSOR_ARCHITECTURE%"=="AMD64" goto WIN_64bit
   SET JAVASERVICE_STUB=%WIPERDOG_HOME%\bin\wiperdog_service_32bit.exe
  
positive.code: SET SERVICE_NAME=Wiperdog
  SET GROOVY_SCRIPT=%WIPERDOG_HOME%\bin\service.groovy
  SET LOGS_FOLDER=%WIPERDOG_HOME%\log
  
  echo.
  echo.
  echo INSTALLING %SERVICE_NAME%
  echo.
  echo JavaService executable is %JAVASERVICE_STUB%
  echo Service name is %SERVICE_NAME%
  echo GROOVY target is %GROOVY_SCRIPT%
  echo LOGS folder is %LOGS_FOLDER%
  echo.
  echo JAVA_HOME is %JAVA_HOME%
  echo.
  echo.
  if not exist "%WIPERDOG_HOME%"\log md "%WIPERDOG_HOME%"\log
  REM stoping service
  net stop "%SERVICE_NAME%"
  "%JAVASERVICE_STUB%" -uninstall "%SERVICE_NAME%"
  
  REM check JDK/JRE
  if exist "%JAVA_HOME%"\bin\client GOTO SET_JRE_CLIENT_DLL
  if exist "%JAVA_HOME%"\bin\server GOTO SET_JRE_SERVER_DLL
  
negative.code: echo E.g.: create_wiperdog_service.bat E:\wiperdog
  echo NOTICE: you must use JRE instead of using JDK
  :end
  ENDLOCAL
  