; Example.nsi
;
; This script is a quick demonstration of how to use CRCCheck.
;
;--------------------------------

Name "CRCCheck Example"

OutFile "CRCCheck Test.exe"

XPStyle on

;--------------------------------

Page instfiles

!include LogicLib.nsh

;--------------------------------

Section ""

  SetAutoClose true

  ; Get a CRC from Windows Explorer
  CRCCheck::GenCRC "C:\Users\PDM Boelen\Desktop\NEW\Installer\b14_beta3_full.potc"
  Pop $R1

  ; And show it...
  MessageBox MB_OK "Windows Explorer CRC: $R1"

  ${If} $R1 == 284994485
    MessageBox MB_OK "CRC is OK"
  ${Else}
    MessageBox MB_OK "CRC is NOT GOOD!"
  ${EndIf}
  
SectionEnd
