anchor.diff:  :: Requirements:  1. Administrator access
   ::                2. Safe mode is strongly recommended (though not required)
   :: Author:        vocatus on reddit.com/r/TronScript ( vocatus.gate at gmail ) // PGP key: 0x07d1490f82a211a2
  -:: Version:       6.9.1 / tron.bat:                    Simplify file paths to make updates easier. Thanks to /u/spexdi
  -::                6.9.0 + tron.bat:prep:os_detection:  Add unsupported OS detection. Tron will bail out if it's running on an unsupported OS (currently only Windows 10).
  -::                                                     Also throws a message telling you to use the -dev flag to override the check. Thanks to /u/spexdi
  -::                      + tron.bat:prep:dev_mode:      Add -dev flag and associated DEV_MODE variable. Use this to override newly-added OS detection (allow running 
  -::                                                     Tron on unsupported Windows versions). Thanks to /u/spexdi
  -::                      * tron.bat:log:header_trailer: Add detected OS version to log header and trailer (why did it take this long to think of this??)
  -::                      ! tron.bat:prep:update:        Fix "download latest version?" prompt to be case insensitive (was accepting only lowercase y). Thanks to /u/ericrobert
  -::                      ! tron.bat:prep:quarantine:    Fix incorrectly-named quarantine path variable
  -::                      / stage_0_prep:ntp:            Rotate order of NTP servers, now query in this order: 2.pool.ntp.org, time.windows.com, time.nist.gov
  -::                      ! stage_1_tempclean:ccleaner:  Fix bug where script continued before CCleaner was finished. Thanks to /u/Chimaera12
  -::                      * stage_2_de-bloat:oem:win10:  Expand and tune OEM Metro de-bloat on Windows 10. This should fix removal of Calculator and some other desireable apps
  -::                      * stage_2_de-bloat:by_guid:    Add new entries and remove many incorrect ones based on user feedback
  -::                      * stage_4_repair:dism_rebuild: Move DISM rebuild out of Stage 2: De-bloat and into Stage 4: Repair after Windows telemetry removal. This prevents telemetry updates from getting "baked in" to Windows. Major thanks to /u/spexdi
  +:: Version:       6.9.1 + stage_4_repair:file_extensions: Add new job to repair broken file extensions. Thanks to /u/cuddlychops06
  +::                      / stage_5_patch:                  Simplify file paths to make updates easier. Thanks to /u/spexdi
  +::                      * stage_5_patch:                  Make app patch installers architecture independent; they'll now detect system architecture and install appropriate version
  +::                      * stage_5_patch:                  Make app patch installers standalone capable. Can now be run by themselves without being called by Tron
  +::                6.9.0 + tron.bat:prep:os_detection:     Add unsupported OS detection. Tron will bail out if it's running on an unsupported OS (currently only Windows 10).
  +::                                                        Also throws a message telling you to use the -dev flag to override the check. Thanks to /u/spexdi
  +::                      + tron.bat:prep:dev_mode:         Add -dev flag and associated DEV_MODE variable. Use this to override newly-added OS detection (allow running 
  +::                                                        Tron on unsupported Windows versions). Thanks to /u/spexdi
  +::                      * tron.bat:log:header_trailer:    Add detected OS version to log header and trailer (why did it take this long to think of this??)
  +::                      ! tron.bat:prep:update:           Fix "download latest version?" prompt to be case insensitive (was accepting only lowercase y). Thanks to /u/ericrobert
  +::                      ! tron.bat:prep:quarantine:       Fix incorrectly-named quarantine path variable
  +::                      / stage_0_prep:ntp:               Rotate order of NTP servers, now query in this order: 2.pool.ntp.org, time.windows.com, time.nist.gov
  +::                      ! stage_1_tempclean:ccleaner:     Fix bug where script continued before CCleaner was finished. Thanks to /u/Chimaera12
  +::                      * stage_2_de-bloat:oem:win10:     Expand and tune OEM Metro de-bloat on Windows 10. This should fix removal of Calculator and some other desireable apps
  +::                      * stage_2_de-bloat:by_guid:       Add new entries and remove many incorrect ones based on user feedback
  +::                      * stage_4_repair:dism_rebuild:    Move DISM rebuild out of Stage 2: De-bloat and into Stage 4: Repair after Windows telemetry removal. This prevents telemetry updates from getting "baked in" to Windows. Major thanks to /u/spexdi
   :: Usage:         Run this script in Safe Mode as an Administrator, follow the prompts, and reboot when finished. That's it.
   ::
   ::                OPTIONAL command-line flags (can be combined, none are required):
  
positive.code: call :log "%CUR_DATE% %TIME%    Done."
  
  
  call :log "%CUR_DATE% %TIME%    Installing latest JRE..."
  :: Check if we're on 32-bit Windows and run the appropriate installer
  if /i '%PROCESSOR_ARCHITECTURE%'=='x86' (
  	call :log "%CUR_DATE% %TIME%    x86 architecture detected, installing x86 version..."
  	setlocal
  	call "stage_5_patch\java\jre\x86\jre-8-i586.bat"
  	endlocal
  ) else (
  	call :log "%CUR_DATE% %TIME%    x64 architecture detected, installing x64 version..."
  	setlocal
  	call "stage_5_patch\java\jre\x64\jre-8-x64.bat"
  	endlocal
  	)
  
  :skip_jre_update
  call :log "%CUR_DATE% %TIME%    Done."
  
negative.code: :: JOB: 7-Zip
  title TRON v%SCRIPT_VERSION% [stage_5_patch] [Update 7-Zip]
  call :log "%CUR_DATE% %TIME%    Launch job 'Update 7-Zip'..."
  :: Call the 7-Zip installer, which detects system architecture and installs appropriate version
  if /i %DRY_RUN%==no (
  	setlocal
  	call "stage_5_patch\7-Zip\7-Zip Installer.bat"
  	endlocal
  )
  call :log "%CUR_DATE% %TIME%    Done."
  
  
  :: JOB: Adobe Flash Player
  title TRON v%SCRIPT_VERSION% [stage_5_patch] [Update Adobe Flash Player]
  call :log "%CUR_DATE% %TIME%    Launch job 'Update Adobe Flash Player'..."
  setlocal
  if /i %DRY_RUN%==no call "stage_5_patch\adobe\flash_player\Adobe Flash Player Installer.bat"
  endlocal
  call :log "%CUR_DATE% %TIME%    Done."
  
  