anchor.diff:  :: we can skip JRE 8 because the JRE 8 updater automatically removes older versions, no need to do it twice
   
   :: JRE 7
  -echo %CUR_DATE% %TIME%   JRE 7...>> "%LOGPATH%\%LOGFILE%"
  -echo %CUR_DATE% %TIME%   JRE 7...
  +echo %CUR_DATE% %TIME%    JRE 7...>> "%LOGPATH%\%LOGFILE%"
  +echo %CUR_DATE% %TIME%    JRE 7...
   %WMIC% product where "IdentifyingNumber like '{26A24AE4-039D-4CA4-87B4-2F8__170__FF}'" call uninstall /nointeractive >> "%LOGPATH%\%LOGFILE%"
   
   :: JRE 6
  -echo %CUR_DATE% %TIME%   JRE 6...>> "%LOGPATH%\%LOGFILE%"
  -echo %CUR_DATE% %TIME%   JRE 6...
  +echo %CUR_DATE% %TIME%    JRE 6...>> "%LOGPATH%\%LOGFILE%"
  +echo %CUR_DATE% %TIME%    JRE 6...
   :: 1st line is for updates 23-xx, after 64-bit runtimes were introduced.
   :: 2nd line is for updates 1-22, before Oracle released 64-bit JRE 6 runtimes
   %WMIC% product where "IdentifyingNumber like '{26A24AE4-039D-4CA4-87B4-2F8__160__FF}'" call uninstall /nointeractive>> "%LOGPATH%\%LOGFILE%"
   %WMIC% product where "IdentifyingNumber like '{3248F0A8-6813-11D6-A77B-00B0D0160__0}'" call uninstall /nointeractive>> "%LOGPATH%\%LOGFILE%"
   
   :: JRE 5
  -echo %CUR_DATE% %TIME%   JRE 5...>> "%LOGPATH%\%LOGFILE%"
  -echo %CUR_DATE% %TIME%   JRE 5...
  +echo %CUR_DATE% %TIME%    JRE 5...>> "%LOGPATH%\%LOGFILE%"
  +echo %CUR_DATE% %TIME%    JRE 5...
   %WMIC% product where "IdentifyingNumber like '{3248F0A8-6813-11D6-A77B-00B0D0150__0}'" call uninstall /nointeractive>> "%LOGPATH%\%LOGFILE%"
   
   :: JRE 4
   
  -echo %CUR_DATE% %TIME%   JRE 4...>> "%LOGPATH%\%LOGFILE%"
  -echo %CUR_DATE% %TIME%   JRE 4...
  +echo %CUR_DATE% %TIME%    JRE 4...>> "%LOGPATH%\%LOGFILE%"
  +echo %CUR_DATE% %TIME%    JRE 4...
   %WMIC% product where "IdentifyingNumber like '{7148F0A8-6813-11D6-A77B-00B0D0142__0}'" call uninstall /nointeractive>> "%LOGPATH%\%LOGFILE%"
   
  -echo %CUR_DATE% %TIME%   Done.>> "%LOGPATH%\%LOGFILE%"
  -echo %CUR_DATE% %TIME%   Done.
  +echo %CUR_DATE% %TIME%    Done.>> "%LOGPATH%\%LOGFILE%"
  +echo %CUR_DATE% %TIME%    Done.
   
   :: JOB: Java Runtime 8
  -echo %CUR_DATE% %TIME%   Launching job 'Update Java Runtime Environment'...>> "%LOGPATH%\%LOGFILE%"
  -echo %CUR_DATE% %TIME%   Launching job 'Update Java Runtime Environment'...
  -
  -:: Check if we're on 32-bit Windows and run the appropriate architecture installer
  +echo %CUR_DATE% %TIME%    Launching job 'Update Java Runtime Environment'...>> "%LOGPATH%\%LOGFILE%"
  +echo %CUR_DATE% %TIME%    Launching job 'Update Java Runtime Environment'...
  +
  +:: Check if we're on 32-bit Windows and run the appropriate installer
   if '%PROCESSOR_ARCHITECTURE%'=='x86' (
  -	echo %CUR_DATE% %TIME%   x86 architecture detected, installing x86 version...>> "%LOGPATH%\%LOGFILE%"
  -	echo %CUR_DATE% %TIME%   x86 architecture detected, installing x86 version...
  +	echo %CUR_DATE% %TIME%    x86 architecture detected, installing x86 version...>> "%LOGPATH%\%LOGFILE%"
  +	echo %CUR_DATE% %TIME%    x86 architecture detected, installing x86 version...
   	pushd java\jre\8\u11\x86
   	setlocal
   	call "jre-8u11-windows-x86.bat"
   	endlocal
   	popd
   ) else (
  -	echo %CUR_DATE% %TIME%   x64 architecture detected, installing x64 version...>> "%LOGPATH%\%LOGFILE%"
  -	echo %CUR_DATE% %TIME%   x64 architecture detected, installing x64 version...
  +	echo %CUR_DATE% %TIME%    x64 architecture detected, installing x64 version...>> "%LOGPATH%\%LOGFILE%"
  +	echo %CUR_DATE% %TIME%    x64 architecture detected, installing x64 version...
   	pushd java\jre\8\u11\x64
   	setlocal
   	call "jre-8u11-windows-x64.bat"
  
positive.code: echo ------------------------------------------------------------------------------->> %LOGPATH%\%LOGFILE%
  echo -------------------------------------------------------------------------------
  
  if not "%AUTO_REBOOT_DELAY%"=="0" shutdown /r /f /t %AUTO_REBOOT_DELAY% /c "Rebooting in %AUTO_REBOOT_DELAY% seconds to finish cleanup."
  pause
  
negative.code:     popd
      )
  
  :skip_repair_wmi
  popd
  echo %CUR_DATE% %TIME%    Done.>> "%LOGPATH%\%LOGFILE%"
  echo %CUR_DATE% %TIME%    Done.
  
  :: JOB: Reduce SysRestore space
  echo %CUR_DATE% %TIME%    Reducing System Restore space...>> "%LOGPATH%\%LOGFILE%"
  echo %CUR_DATE% %TIME%    Reducing System Restore space...
  pushd reduce_system_restore
  if "%DRY_RUN%"=="no" reg add "\\%COMPUTERNAME%\HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore" /v DiskPercent /t REG_DWORD /d 00000005 /f
  if "%DRY_RUN%"=="no" reg add "\\%COMPUTERNAME%\HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore\Cfg" /v DiskPercent /t REG_DWORD /d 00000005 /f
  popd
  echo %CUR_DATE% %TIME%    Done.>> "%LOGPATH%\%LOGFILE%"
  echo %CUR_DATE% %TIME%    Done.
  
  
  popd
  