anchor.diff:  @ECHO OFF
   
  -SET            FILE_SETUP=".\Summae.iss"
  -SET         FILE_SOLUTION="..\Source\Summae.sln"
  -SET      FILES_EXECUTABLE="..\Binaries\Summae.exe" "..\Binaries\SummaeExecutor.exe" "..\Binaries\sum.exe" "..\Binaries\SummaeSettings.exe"
  -SET           FILES_OTHER="..\Binaries\ReadMe.txt"
  -SET   CERTIFICATE_SUBJECT="Josip Medved"
  -SET CERTIFICATE_TIMESTAMP="http://www.startssl.com/timestamp/"
  +SET        FILE_SETUP=".\Summae.iss"
  +SET     FILE_SOLUTION="..\Source\Summae.sln"
  +SET  FILES_EXECUTABLE="..\Binaries\Summae.exe" "..\Binaries\SummaeExecutor.exe" "..\Binaries\sum.exe" "..\Binaries\SummaeSettings.exe"
  +SET       FILES_OTHER="..\Binaries\ReadMe.txt"
  +
  +SET      COMPILE_TOOL="%PROGRAMFILES(X86)%\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe"
  +
  +SET         SIGN_TOOL="%PROGRAMFILES%\Microsoft SDKs\Windows\v7.0\Bin\signtool.exe"
  +SET         SIGN_HASH="EB41D6069805B20D87219E0757E07836FB763958"
  +SET SIGN_TIMESTAMPURL="http://www.startssl.com/timestamp/"
   
   
   ECHO --- BUILD SOLUTION
   ECHO.
   
   RMDIR /Q /S "..\Binaries" 2> NUL
  -"%PROGRAMFILES(X86)%\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe" /Build "Release" %FILE_SOLUTION%
  +%COMPILE_TOOL% /Build "Release" %FILE_SOLUTION%
   IF ERRORLEVEL 1 PAUSE && EXIT /B %ERRORLEVEL%
   
   ECHO.
   
   
  -ECHO --- SIGN SOLUTION
  +CERTUTIL -silent -verifystore -user My %SIGN_HASH% > NUL
  +IF %ERRORLEVEL%==0 (
  +    ECHO --- SIGN SOLUTION
  +    ECHO.
  +    
  +    IF [%SIGN_TIMESTAMPURL%]==[] (
  +        %SIGN_TOOL% sign /s "My" /sha1 %SIGN_HASH% /v %FILES_EXECUTABLE%
  +    ) ELSE (
  +        %SIGN_TOOL% sign /s "My" /sha1 %SIGN_HASH% /tr %SIGN_TIMESTAMPURL% /v %FILES_EXECUTABLE%
  +    )
  +    IF ERRORLEVEL 1 PAUSE && EXIT /B %ERRORLEVEL%
  +) ELSE (
  +    ECHO --- DID NOT SIGN SOLUTION
  +    IF NOT [%SIGN_HASH%]==[] (
  +        ECHO.
  +        ECHO No certificate with hash %SIGN_HASH%.
  +    ) 
  +)
   ECHO.
  -
  -IF [%CERTIFICATE_TIMESTAMP%]==[] (
  -    "\Tools\SignTool\signtool.exe" sign /s "My" /n %CERTIFICATE_SUBJECT% /v %FILES_EXECUTABLE%
  -) ELSE (
  -    "\Tools\SignTool\signtool.exe" sign /s "My" /n %CERTIFICATE_SUBJECT% /tr %CERTIFICATE_TIMESTAMP% /v %FILES_EXECUTABLE%
  -)
  -IF ERRORLEVEL 1 PAUSE && EXIT /B %ERRORLEVEL%
  -
   ECHO.
   
   
  
positive.code: ECHO Setup is in file %_SETUPEXE%
  
  ECHO.
  
  
  ECHO --- SIGN SETUP
  ECHO.
  
  IF [%CERTIFICATE_TIMESTAMP%]==[] (
      "\Tools\SignTool\signtool.exe" sign /s "My" /n %CERTIFICATE_SUBJECT% /v ".\Temp\%_SETUPEXE%"
  ) ELSE (
      "\Tools\SignTool\signtool.exe" sign /s "My" /n %CERTIFICATE_SUBJECT% /tr %CERTIFICATE_TIMESTAMP% /v ".\Temp\%_SETUPEXE%"
  )
  IF ERRORLEVEL 1 PAUSE && EXIT /B %ERRORLEVEL%
  
  ECHO.
  
  
  
negative.code: IF ERRORLEVEL 1 PAUSE && EXIT /B %ERRORLEVEL%
  
  ECHO.
  ECHO.
  
  
  ECHO --- RELEASE
  ECHO.
  
  MKDIR "..\Releases" 2> NUL
  MOVE ".\Temp\*.*" "..\Releases\." > NUL
  IF ERRORLEVEL 1 PAUSE && EXIT /B %ERRORLEVEL%
  RMDIR /Q /S ".\Temp"
  
  ECHO.
  
  
  ECHO --- DONE
  ECHO.
  
  PAUSE
  