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.2 + Add additional uninstall commands make sure we fully remove old versions first. Thanks to github:abulgatz
  +:: History:       1.0.3 + Add proper console and logfile logging
  +::                1.0.2 + Add additional uninstall commands make sure we fully remove old versions first. Thanks to github:abulgatz
   ::                1.0.1 * Expand Desktop shortcut deletion mask to sweep all subdirectories under the base user profile directory
   ::                1.0.0 + Initial write
   
  
positive.code: :: INSTALLATION ::
  ::::::::::::::::::
  :: Kill Firefox first
  %SystemDrive%\windows\system32\taskkill.exe /F /IM firefox.exe /T 2>NUL
  wmic process where name="firefox.exe" call terminate 2>NUL
  
  :: Remove old version first
  IF EXIST "%ProgramFiles%\Mozilla Firefox\uninstall\helper.exe" "%ProgramFiles%\Mozilla Firefox\uninstall\helper.exe" /S
  IF EXIST "%ProgramFiles(x86)%\Mozilla Firefox\uninstall\helper.exe" "%ProgramFiles(x86)%\Mozilla Firefox\uninstall\helper.exe" /S
  wmic product where "name like 'Mozille Firefox%%'" call uninstall /nointeractive
  
  :: Install the package from the local folder (if all files are in the same directory)
  "%BINARY%" %FLAGS%
  
  :: Install customizations, built with CCK2
  if exist "%ProgramFiles(x86)%\Mozilla Firefox\" xcopy /s /e /y "autoconfig\*" "%ProgramFiles(x86)%\Mozilla Firefox"
  if exist "%ProgramFiles%\Mozilla Firefox\" xcopy /s /e /y "autoconfig\*" "%ProgramFiles%\Mozilla Firefox"
  
  
negative.code: :: VARIABLES :: -- Set these to your desired values
  :::::::::::::::
  :: Log location and name. Do not use trailing slashes (\)
  set LOGPATH=%SystemDrive%\logs
  set LOGFILE=%COMPUTERNAME%_Mozilla_Firefox_x64_install.log
  
  :: Package to install. Do not use trailing slashes (\)
  set BINARY=Mozilla Firefox.exe
  set FLAGS=/INI="%CD%\configuration.ini"
  
  