anchor.diff:  )
   
   if "%javaVersion%" == "" (
  -  set javaHomeError=Unable to locate jvm. Could not find %keyName%/%valueName% entry in windows registry, and could not find it via JAVA_HOME.
  +  set javaHomeError=Unable to locate jvm. Could not find %keyName%/%valueName% entry in windows registry.
     goto:eof
   )
   
  
positive.code: 
  rem
  rem function findJavaHome
  rem Tries to find java.exe using JAVA_HOME
  rem or using registry keys.
  rem
  
  :findJavaHome
  if not "%JAVA_HOME%" == "" (
    
    set javaPath=%JAVA_HOME%
    if exist "%javaPath%\bin\javac.exe" (
      set javaPath=%javaPath%\jre
    )
    
    if exist "%javaPath%\bin\client\java.exe" (
      set javaPath= %javaPath%\bin\client\java.exe
  	
      goto:eof
    )
    
    if exist "%javaPath%\bin\server\java.exe" (
      set javaPath= %javaPath%\bin\server\java.exe
      goto:eof
    )
  )
  
  
negative.code: 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%
  call:start
  goto:eof
  
  