anchor.diff:  :: INSTALLATION ::
   ::::::::::::::::::
   :: Kill any existing instances
  +echo %CUR_DATE% %TIME% Killing any running Spark instances, please wait...
  +echo %CUR_DATE% %TIME% Killing any running Spark instances, please wait...>> "%LOGPATH%\%LOGFILE%" 2>NUL
   taskkill /im "spark.exe" /f
   wmic Path win32_process Where "CommandLine Like '%spark%'" Call Terminate
  +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)
  +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
   
   :: Remove All Users desktop icon - Windows XP
   if exist "%allusersprofile%\Desktop\Spark.lnk" del "%allusersprofile%\Desktop\Spark.lnk" /S
  
positive.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=
  
  :: Package to install. Do not use trailing slashes (\)
  set LOCATION=
  set BINARY=Spark v2.7.7 x86.exe
  set FLAGS=-q
  
  :: Create the log directory if it doesn't exist
  
negative.code: :: Remove the OTR (Off-the-Record) plugin
  if exist "%SystemDrive%\Program Files (x86)\Spark\plugins\otrplug.jar" del /F /Q "%SystemDrive%\Program Files (x86)\Spark\plugins\otrplug.jar"
  
  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
  
  