anchor.diff:  
   :: Backup the various registry keys that will get deleted (if they exist)
   :: We do this mainly because we're using wildcards, so we want a method to roll back if we accidentally nuke the wrong thing
  -echo %CUR_DATE% %TIME%   Backing up keys...>> "%LOGPATH%\%LOGFILE%"
  -echo %CUR_DATE% %TIME%   Backing up keys...
  +call :log "%CUR_DATE% %TIME%   Backing up keys..."
   if exist "%TEMP%\java_purge_registry_backup" rmdir /s /q "%TEMP%\java_purge_registry_backup" 2>NUL
   mkdir %TEMP%\java_purge_registry_backup >NUL
   :: This line walks through the file we generated and dumps each key to a file
   for /f "tokens=* delims= " %%a in (%TEMP%\java_purge_registry_keys.txt) do (reg query %%a) >> %TEMP%\java_purge_registry_backup\java_reg_keys_1.bak
   
   echo.
  -echo %CUR_DATE% %TIME%   Keys backed up to %TEMP%\java_purge_registry_backup\ >> "%LOGPATH%\%LOGFILE%"
  -echo %CUR_DATE% %TIME%   Keys backed up to %TEMP%\java_purge_registry_backup\
  -echo %CUR_DATE% %TIME%   This directory will be deleted at next reboot, so get it now if you need it! >> "%LOGPATH%\%LOGFILE%"
  -echo %CUR_DATE% %TIME%   This directory will be deleted at next reboot, so get it now if you need it!
  +call :log "%CUR_DATE% %TIME%   Keys backed up to %TEMP%\java_purge_registry_backup\"
  +call :log "%CUR_DATE% %TIME%   This directory will be deleted at next reboot, so get it now if you need it!"
   
   :: Purge the keys
  -echo %CUR_DATE% %TIME%   Purging keys...>> "%LOGPATH%\%LOGFILE%"
  -echo %CUR_DATE% %TIME%   Purging keys...
  +call :log "%CUR_DATE% %TIME%   Purging keys..."
   echo.
   :: This line walks through the file we generated and deletes each key listed
   for /f "tokens=* delims= " %%a in (%TEMP%\java_purge_registry_keys.txt) do reg delete %%a /f >> "%LOGPATH%\%LOGFILE%" 2>NUL
  
positive.code: :::::::::::::::::::::::::::
  if %FORCE_CLOSE_PROCESSES%==yes (
  	:: Kill all browsers and running Java instances
  	echo %CUR_DATE% %TIME%   Looking for and closing all running browsers and Java instances...>> "%LOGPATH%\%LOGFILE%"
  	echo %CUR_DATE% %TIME%   Looking for and closing all running browsers and Java instances...
  	if %OS_VERSION%==XP (
  		:: XP version of the task killer
  		:: this loop contains the processes we should kill
  
negative.code: reg query HKLM\software\classes\installer\products /f "Java*Runtime" /s | find "HKEY_LOCAL_MACHINE" >> %TEMP%\java_purge_registry_keys.txt
  
  :: Search the Add/Remove programs list (this helps with broken Java installations)
  call :log "%CUR_DATE% %TIME%   Looking in HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall..."
  reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall /f "J2SE Runtime" /s | find "HKEY_LOCAL_MACHINE" >> %TEMP%\java_purge_registry_keys.txt
  reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall /f "Java(TM) 6 Update" /s | find "HKEY_LOCAL_MACHINE" >> %TEMP%\java_purge_registry_keys.txt
  reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall /f "Java 7" /s | find "HKEY_LOCAL_MACHINE" >> %TEMP%\java_purge_registry_keys.txt
  