anchor.diff:  XCOPY deployment.* %WINDIR%\Sun\Java\Deployment /I /Y
   XCOPY *.sites %WINDIR%\Sun\Java\Deployment /I /Y
   
  +echo %CUR_DATE% %TIME% Done.
  +echo %CUR_DATE% %TIME% Done.>> "%LOGPATH%\%LOGFILE%" 2>NUL
  +
   :: 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%+exit /B %EXIT_CODE%
  
positive.code: :: INSTALLATION ::
  ::::::::::::::::::
  :: This removes previous versions of the JRE
  echo %CUR_DATE% %TIME%   Uninstalling all versions of JRE 8 x86 prior to installation of current version...>> "%LOGPATH%\%LOGFILE%"
  wmic product where "IdentifyingNumber like '{26A24AE4-039D-4CA4-87B4-2F832180__FF}'" call uninstall /nointeractive >> "%LOGPATH%\%LOGFILE%"
  :: Second version of the command is to catch JRE8 versions above 99 where they start using 3-digit identifiers instead of 2-digit
  
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
  
  
  