anchor.diff:  rem function install
   rem
   :install
  -set binPath=%javaPath%\bin\java.exe -DworkingDir=%~dps0.. -DconfigFile=%configFile% %classpath% %mainclass% -jar %~dps0%wrapperJarFilename% %serviceName%
  -sc create "%serviceName%" binPath= "%binPath%" DisplayName= "%serviceDisplayName%" start= %serviceStartType%
  +set binPath="%javaPath%\bin\java.exe -DworkingDir=%~dps0.. -DconfigFile=%configFile% %classpath% %mainclass% -jar %~dps0%wrapperJarFilename% %serviceName%"
  +sc create "%serviceName%" binPath= %binPath% DisplayName= "%serviceDisplayName%" start= %serviceStartType%
   call:start
   goto:eof
   
  
positive.code: set javaHomeKey=JavaHome
  
  FOR /F "usebackq skip=2 tokens=3,4" %%a IN (`REG QUERY "%javaCurrentKey%" /v %javaHomeKey% 2^>nul`) DO (
    set javaPath=%%a %%b
  )
  goto:eof
  
  
negative.code: 
  rem
  rem function findJavaHome
  rem
  
  :findJavaHome
  if not "%JAVA_HOME%" == "" (
    
    if exist "%JAVA_HOME%\bin\javac.exe" (
      if exist "%JAVA_HOME%\jre\bin\client\java.exe" (
        set javaPath= "%JAVA_HOME%\jre\bin\client\java.exe"
        goto:eof
      )
  
      if exist "%JAVA_HOME%\jre\bin\server\java.exe" (
        set javaPath= "%JAVA_HOME%\jre\bin\server\java.exe"
        goto:eof
      )
    )
  
    if exist "%JAVA_HOME%\bin\client\java.exe" (
  		set javaPath= "%JAVA_HOME%\bin\client\java.exe"
  		goto:eof
    )
  	  
    if exist "%JAVA_HOME%\bin\server\java.exe" (
  		set javaPath= "%JAVA_HOME%\bin\server\java.exe"
  		goto:eof
    )
  )
  
  