anchor.diff:  if exist "%ProgramFiles%\7-Zip" set SEVENZIP_DETECTED=yes
   if %SEVENZIP_DETECTED%==yes (
   	title Tron v%TRON_VERSION% [stage_5_patch] [Update 7-Zip]
  -	call functions\log_with_date.bat "    7-Zip detected, updating..."
  -	call functions\log_with_date.bat "    Launch job 'Update 7-Zip'..."
  +	call functions\log_with_date.bat "   7-Zip detected, updating..."
  +	call functions\log_with_date.bat "   Launch job 'Update 7-Zip'..."
   	setlocal
   	if /i %DRY_RUN%==no call "stage_5_patch\7-Zip\7-Zip Installer.bat"
   	endlocal
  -	call functions\log_with_date.bat "    Done."
  +	call functions\log_with_date.bat "   Done."
   )
   
   
  
positive.code: ::::::::::::::::::::
  :: STAGE 5: Patch :: // Begin jobs
  ::::::::::::::::::::
  call functions\log_with_date.bat "   stage_5_patch begin..."
  
  
  :: Prep task: enable MSI installer in Safe Mode
  
negative.code: 		REM Skip JRE 8 because the JRE 8 update script automatically removes older versions of 8, no need to do it twice
  
  		REM JRE 7
  		call functions\log_with_date.bat "   JRE 7..."
  		<NUL %WMIC% product where "IdentifyingNumber like '{26A24AE4-039D-4CA4-87B4-2F___170__FF}'" call uninstall /nointeractive >> "%LOGPATH%\%LOGFILE%" 2>NUL
  
  		REM JRE 6
  		call functions\log_with_date.bat "   JRE 6..."
  		REM 1st line is for updates 23-xx, after Oracle introduced 64-bit runtimes
  		REM 2nd line is for updates 1-22, before 64-bit JRE 6 runtimes existed
  		<NUL %WMIC% product where "IdentifyingNumber like '{26A24AE4-039D-4CA4-87B4-2F8__160__FF}'" call uninstall /nointeractive >> "%LOGPATH%\%LOGFILE%" 2>NUL
  		<NUL %WMIC% product where "IdentifyingNumber like '{3248F0A8-6813-11D6-A77B-00B0D0160__0}'" call uninstall /nointeractive >> "%LOGPATH%\%LOGFILE%" 2>NUL
  
  		REM JRE 5
  		call functions\log_with_date.bat "   JRE 5..."
  		<NUL %WMIC% product where "IdentifyingNumber like '{3248F0A8-6813-11D6-A77B-00B0D0150__0}'" call uninstall /nointeractive >> "%LOGPATH%\%LOGFILE%" 2>NUL
  
  		REM JRE 4
  		call functions\log_with_date.bat "   JRE 4..."
  		<NUL %WMIC% product where "IdentifyingNumber like '{7148F0A8-6813-11D6-A77B-00B0D0142__0}'" call uninstall /nointeractive >> "%LOGPATH%\%LOGFILE%" 2>NUL
  
  		call functions\log_with_date.bat "   Done."
  
  
  		REM Install the latest version
  		call functions\log_with_date.bat "   Installing latest JRE..."
  		setlocal
  		call "stage_5_patch\java\jre\jre-8-installer.bat"
  		endlocal
  	)
  call functions\log_with_date.bat "   Done."
  )
  
  
  