anchor.diff:      ECHO --- BUILD ZIP
       ECHO.
   
  -    ECHO Zipping into %_SETUPEXE:.exe=.zip%
  -    "%PROGRAMFILES%\WinRAR\WinRAR.exe" a -afzip -ep -m5 ".\Temp\%_SETUPEXE:.exe=.zip%" %FILE_EXECUTABLE% %FILES_OTHER%
  -    IF ERRORLEVEL 1 PAUSE && EXIT /B %ERRORLEVEL%
  +    IF EXIST %RAR_TOOL% (
  +        ECHO Zipping into %_SETUPEXE:.exe=.zip%
  +        "%PROGRAMFILES%\WinRAR\WinRAR.exe" a -afzip -ep -m5 ".\Temp\%_SETUPEXE:.exe=.zip%" %FILE_EXECUTABLE% %FILES_OTHER%
  +        IF ERRORLEVEL 1 PAUSE && EXIT /B %ERRORLEVEL%
  +    ) ELSE (
  +        ECHO No WinRAR
  +    )
   
       ECHO.
       ECHO.
  
positive.code: SET  FILES_EXECUTABLE="..\Binaries\HamCheck.exe" "..\Binaries\HamCheckExam.dll"
  SET       FILES_OTHER="..\Binaries\ReadMe.txt" "..\Binaries\License.txt"
  
  SET    COMPILE_TOOL_1="%PROGRAMFILES(X86)%\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe"
  SET    COMPILE_TOOL_2="%PROGRAMFILES(X86)%\Microsoft Visual Studio 14.0\Common7\IDE\WDExpress.exe"
  SET    COMPILE_TOOL_3="%PROGRAMFILES(X86)%\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe"
  SET    COMPILE_TOOL_4="%PROGRAMFILES(X86)%\Microsoft Visual Studio 12.0\Common7\IDE\WDExpress.exe"
  SET        SETUP_TOOL="%PROGRAMFILES(x86)%\Inno Setup 5\iscc.exe"
  SET        MERGE_TOOL="%PROGRAMFILES(x86)%\Microsoft\ILMerge\ILMerge.exe"
  
  SET       SIGN_TOOL_1="%PROGRAMFILES(X86)%\Windows Kits\8.1\bin\x86\signtool.exe"
  SET       SIGN_TOOL_2="%PROGRAMFILES(X86)%\Windows Kits\8.0\bin\x86\signtool.exe"
  SET   SIGN_THUMBPRINT="df26e797ffaee47a40c1fab756e995d3763da968"
  SET SIGN_TIMESTAMPURL="http://timestamp.comodoca.com/rfc3161"
  
  SET        GIT_TOOL_1="%PROGRAMFILES%\Git\mingw64\bin\git.exe"
  
  
  ECHO --- DISCOVER TOOLS
  ECHO.
  
  IF EXIST %COMPILE_TOOL_1% (
      ECHO Visual Studio 2015
      SET COMPILE_TOOL=%COMPILE_TOOL_1%
  ) ELSE (
      IF EXIST %COMPILE_TOOL_2% (
          ECHO Visual Studio 2015 Express
          SET COMPILE_TOOL=%COMPILE_TOOL_2%
      ) ELSE (
          IF EXIST %COMPILE_TOOL_3% (
              ECHO Visual Studio 2013
              SET COMPILE_TOOL=%COMPILE_TOOL_3%
          ) ELSE (
              IF EXIST %COMPILE_TOOL_4% (
                  ECHO Visual Studio Express 2013
                  SET COMPILE_TOOL=%COMPILE_TOOL_4%
              ) ELSE (
                  ECHO Cannot find Visual Studio^^!
                  PAUSE && EXIT /B 255
              )
          )
      )
  )
  
negative.code:     SET GIT_TOOL=%GIT_TOOL_1%
  ) ELSE (
      GIT_TOOL="git"
  )
  
  IF NOT EXIST %RAR_TOOL% (
      ECHO WinRAR not present^^!
  )
  
  ECHO.
  