anchor.diff:  :: Variables :: -- Set these to your desired values
   :::::::::::::::
   :: Log location and name. Do not use trailing slashes (\)
  -set LOGPATH=%SystemDrive%\Logs
  -set LOGFILE=jre8_x64_update.log
  +set LOGPATH=%SystemDrive%\logs
  +set LOGFILE=jre8_x64_install.log
   
   :: Package to install. Do not use trailing slashes (\)
  -set LOCATION=
  -set BINARY=jre-8u211-windows-x64.msi
  +set BINARY=jre-8u231-windows-x64.msi
   set FLAGS=ALLUSERS=1 /qn /norestart /l %LOGPATH%\%LOGFILE% JU=0 JAVAUPDATE=0 AUTOUPDATECHECK=0 RebootYesNo=No WEB_JAVA_SECURITY_LEVEL=M
   
   :: Create the log directory if it doesn't exist
  
positive.code: :: INSTALLATION ::
  ::::::::::::::::::
  :: This first removes previous versions of the JRE
  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
  
  :: 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.
  msiexec /i "%BINARY%" %FLAGS%
  
  :: This line kills the Java Update scheduler if it's running
  %SystemRoot%\System32\taskkill.exe /f /im jusched.exe>>%LOGPATH%\%LOGFILE% 2>NUL
  
negative.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.3 + Add proper console and logfile logging
  ::                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
  
  
  