anchor.diff:  :: VARIABLES :: -- Set these to your desired values
   :::::::::::::::
   :: Log location and name. Do not use trailing slashes (\)
  -set LOGPATH=%SystemDrive%\Logs
  -set LOGFILE=jdk8_i586_update.log
  +set LOGPATH=%SystemDrive%\logs
  +set LOGFILE=jdk8_x86_install.log
   
   :: Package to install. Do not use trailing slashes (\)
  -set LOCATION=
  -set BINARY=jdk-8u211-windows-i586.exe
  +set BINARY=jdk-8u231-windows-i586.exe
   set FLAGS=/s /l %LOGPATH%\%LOGFILE% ADDLOCAL="ToolsFeature"
   
   :: Create the log directory if it doesn't exist
  
positive.code: if exist "%ProgramData%\Microsoft\Windows\Start Menu\Programs\Java Development Kit" rmdir /s /q "%ProgramData%\Microsoft\Windows\Start Menu\Programs\Java Development Kit">> "%LOGPATH%\%LOGFILE%"
  if exist "%ProgramData%\Microsoft\Windows\Start Menu\Programs\Java" rmdir /s /q "%ProgramData%\Microsoft\Windows\Start Menu\Programs\Java">> "%LOGPATH%\%LOGFILE%"
  
  :: Pop back to original directory. This isn't necessary in stand-alone runs of the script, but is needed when being called from another script
  popd
  
  :: Return exit code to SCCM/PDQ Deploy/etc
  exit /B %EXIT_CODE%
negative.code: :: Remove previous versions of the JDK, series 8. The first two digits are the architecture (32 or 64) and the two underscores are WMI wildcards for single characters.
  :: This part of the GUID contains the update number of the JDK (e.g. Update 5 is 05). This way we catch all versions of JRE8 on the architecture we want, but DON'T 
  :: catch anything else.
  echo %CUR_DATE% %TIME% Removing previous versions, please wait...
  echo %CUR_DATE% %TIME% Removing previous versions, please wait...>> "%LOGPATH%\%LOGFILE%" 2>NUL
  wmic product where "IdentifyingNumber like '{32A3A4F4-B792-11D6-A78A-00B0D0180__0}'" call uninstall /nointeractive>> "%LOGPATH%\%LOGFILE%" 2>NUL
  :: This also works, but I prefer to use GUID's rather than product names since Sun sometimes changes the "friendly name" of Java in Add/Remove programs
  ::wmic product where "name like 'Java SE Development Kit 8 Update%%'" uninstall /nointeractive>> "%LOGPATH%\%LOGFILE%" 2>NUL
  echo %CUR_DATE% %TIME% Done.
  echo %CUR_DATE% %TIME% Done.>> "%LOGPATH%\%LOGFILE%" 2>NUL
  
  
  :: Install the package from a local folder (if all files are in the same directory)
  echo %CUR_DATE% %TIME% Installing package...
  echo %CUR_DATE% %TIME% Installing package...>> "%LOGPATH%\%LOGFILE%" 2>NUL
  "%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
  :: Import the reg file that disables Java auto-updater
  regedit /s Tweak_Disable_Java_Auto-Update.reg >> %LOGPATH%\%LOGFILE% 2>nul
  
  