anchor.diff:  ECHO Setup is in file %_SETUPEXE%
   
   ECHO.
  +ECHO.
   
   
  -ECHO --- SIGN SETUP
  +CERTUTIL -silent -verifystore -user My %SIGN_HASH% > NUL
  +IF %ERRORLEVEL%==0 (
  +    ECHO --- SIGN SETUP
  +    ECHO.
  +    
  +    IF [%SIGN_TIMESTAMPURL%]==[] (
  +        %SIGN_TOOL% sign /s "My" /sha1 %SIGN_HASH% /v ".\Temp\%_SETUPEXE%"
  +    ) ELSE (
  +        %SIGN_TOOL% sign /s "My" /sha1 %SIGN_HASH% /tr %SIGN_TIMESTAMPURL% /v ".\Temp\%_SETUPEXE%"
  +    )
  +    IF ERRORLEVEL 1 PAUSE && EXIT /B %ERRORLEVEL%
  +) ELSE (
  +    ECHO --- DID NOT 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.
   
   
  
positive.code: @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/"
  
  
  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%
  IF ERRORLEVEL 1 PAUSE && EXIT /B %ERRORLEVEL%
  
  ECHO.
  
  
  ECHO --- SIGN SOLUTION
  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.
  
  
  
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
  