; MUI 1.67 compatible ------
!include "MUI.nsh"

; MUI Settings
!define MIN_EVENT 100
!define BEGIN_SYSTEM_CHANGE 100
!define END_SYSTEM_CHANGE 101
!define BEGIN_NESTED_SYSTEM_CHANGE 102 # for Whistler only - use this to prevent nested restore pts
!define END_NESTED_SYSTEM_CHANGE 103 # for Whistler only - use this to prevent nested restore pts
!define MAX_EVENT 103

#
# Type of Restore Points
#

!define MIN_RPT 0
!define APPLICATION_INSTALL 0
!define APPLICATION_UNINSTALL 1
!define DESKTOP_SETTING 2 # Not implemented
!define ACCESSIBILITY_SETTING 3 # Not implemented
!define OE_SETTING 4 # Not implemented
!define APPLICATION_RUN 5 # Not implemented
!define RESTORE 6
!define CHECKPOINT 7
!define WINDOWS_SHUTDOWN 8 # Not implemented
!define WINDOWS_BOOT 9 # Not implemented
!define DEVICE_DRIVER_INSTALL 10
!define FIRSTRUN 11
!define MODIFY_SETTINGS 12
!define CANCELLED_OPERATION 13 # Only valid for END_SYSTEM_CHANGE
!define BACKUP_RECOVERY 14

; Welcome page
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH

; Language files
!insertmacro MUI_LANGUAGE "English"

; MUI end ------

Name "test"
OutFile "Setup.exe"

Section "MainSection"
dumpstate::debug
System::Call 'SrClient::SRSetRestorePoint(i ${BEGIN_SYSTEM_CHANGE}, i ${APPLICATION_INSTALL}, l 0, t "Description", i .r1, l .r2) i .r3 ?e'
dumpstate::debug
System::Call 'SrClient::SRSetRestorePoint(i ${END_SYSTEM_CHANGE}, i ${APPLICATION_INSTALL}, l r2, t "Description", i .r1, l .r2) i .r3 ?e'
dumpstate::debug
SectionEnd

