anchor.diff:  :: 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.0 + Initial write
  +:: History:       1.0.1 + Add proper console and logfile logging
  +::                1.0.0 + Initial write
   
   
   ::::::::::
   :: Prep :: -- Don't change anything in this section
   ::::::::::
   @echo off
  -set SCRIPT_VERSION=1.0.0
  -set SCRIPT_UPDATED=2015-12-30
  +set SCRIPT_VERSION=1.0.1
  +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: :: INSTALLATION ::
  ::::::::::::::::::
  :: Kill any existing instances
  taskkill /im "spark.exe" /f
  wmic Path win32_process Where "CommandLine Like '%spark%'" Call Terminate
  
  :: Install the package from a local directory (if all files are in the same directory)
  "%BINARY%" %FLAGS%
  
  :: Remove All Users desktop icon - Windows XP
  if exist "%allusersprofile%\Desktop\Spark.lnk" del "%allusersprofile%\Desktop\Spark.lnk" /S
  
negative.code: pushd "%~dp0"
  cls
  
  
  :::::::::::::::
  :: Variables :: -- Set these to your desired values
  :::::::::::::::
  :: Log location and name. Do not use trailing slashes (\)
  set LOGPATH=%SystemDrive%\logs
  set LOGFILE=%COMPUTERNAME%_Spark_x86_install.log
  
  :: Package to install. Do not use trailing slashes (\)
  set BINARY=Spark v2.8.3 x86.exe
  set FLAGS=-q
  
  :: Create the log directory if it doesn't exist
  