anchor.diff:  :: Prep :: -- Don't change anything in this section
   ::::::::::
   @echo off
  -set SCRIPT_VERSION=1.0.2
  -set SCRIPT_UPDATED=2017-05-04
  +set SCRIPT_VERSION=1.0.3
  +set SCRIPT_UPDATED=2020-02-05
   :: Get the date into ISO 8601 standard date format (yyyy-mm-dd) so we can use it
   FOR /f %%a in ('WMIC OS GET LocalDateTime ^| find "."') DO set DTS=%%a
   set CUR_DATE=%DTS:~0,4%-%DTS:~4,2%-%DTS:~6,2%
  
positive.code: :: Purpose:       Installs a package
  :: Requirements:  Run this script with Administrator rights
  :: Author:        vocatus on reddit.com/r/sysadmin ( vocatus.gate@gmail.com ) // PGP key ID: 0x07d1490f82a211a2
  :: History:       1.0.2 * Expand JRE8 mask to catch versions over 99 (3-digit identifier vs. 2). Thanks to /u/flash44007
  ::                1.0.0 + Initial write
  
  
  
negative.code: :: INSTALLATION ::
  ::::::::::::::::::
  :: This first removes previous versions of the JRE
  echo %CUR_DATE% %TIME% Removing previous versions, please wait...
  echo %CUR_DATE% %TIME% Removing previous versions, please wait...>> "%LOGPATH%\%LOGFILE%" 2>NUL
  echo %CUR_DATE% %TIME%   Uninstalling all versions of JRE 8 x64 prior to installation of current version...>> "%LOGPATH%\%LOGFILE%"
  wmic product where "IdentifyingNumber like '{26A24AE4-039D-4CA4-87B4-2F864180__F_}'" call uninstall /nointeractive >> "%LOGPATH%\%LOGFILE%"
  :: Second version of the command to catch JRE8 versions above 99 where they start using 3-digit identifiers instead of 2-digit
  wmic product where "IdentifyingNumber like '{26A24AE4-039D-4CA4-87B4-2F64180___F_}'" call uninstall /nointeractive >> "%LOGPATH%\%LOGFILE%"
  
  :: Sometimes the previous line doesn't work for whatever reason, so we run this line as well
  wmic product where "name like 'Java 8 Update %% (64-bit)'" uninstall /nointeractive
  echo %CUR_DATE% %TIME% Done.
  echo %CUR_DATE% %TIME% Done.>> "%LOGPATH%\%LOGFILE%" 2>NUL
  
  
  :: Install the package from a local directory (if all files are in the same directory)
  :: Nothing below this line will log correctly, because MSI logs in a different format than the standard "echo >> %logfile%" commands. Haven't had time to find a workaround.
  echo %CUR_DATE% %TIME% Installing package...
  echo %CUR_DATE% %TIME% Installing package...>> "%LOGPATH%\%LOGFILE%" 2>NUL
  msiexec /i "%BINARY%" %FLAGS%
  echo %CUR_DATE% %TIME% Done.
  echo %CUR_DATE% %TIME% Done.>> "%LOGPATH%\%LOGFILE%" 2>NUL
  
  
  echo %CUR_DATE% %TIME% Disabling telemetry and cleaning up...
  echo %CUR_DATE% %TIME% Disabling telemetry and cleaning up...>> "%LOGPATH%\%LOGFILE%" 2>NUL
  
  :: This line kills the Java Update scheduler if it's running
  %SystemRoot%\System32\taskkill.exe /f /im jusched.exe>>%LOGPATH%\%LOGFILE% 2>NUL
  