!include 'nsDialogs.nsh'
!include 'MUI.nsh'

Name 'nsDialogs & MUI Test'

OutFile 'nsDialogs_MUI_Test.exe'

InstallDir '$TEMP'

XPStyle on

; pages

!insertmacro MUI_PAGE_WELCOME

Page Custom nsDialogsPage_1

!insertmacro MUI_PAGE_INSTFILES

Page Custom nsDialogsPage_2

!insertmacro MUI_PAGE_FINISH

!insertmacro MUI_LANGUAGE 'English'

; sections

Section 'Main'
  DetailPrint 'This is the MUI_PAGE_INSTFILES.'
  MessageBox MB_OK 'This was the MUI_PAGE_INSTFILES... :('
SectionEnd

; functions

Function nsDialogsPage_1
  !insertmacro MUI_HEADER_TEXT 'nsDialogsPage_1' 'nsDialogsPage_1'
	nsDialogs::Create /NOUNLOAD 1018
	Pop $0
	${NSD_CreateButton} 33% 33% 33% 33% 'nsDialogsPage_1'
	Pop $0
	nsDialogs::Show
FunctionEnd

Function nsDialogsPage_2
	!insertmacro MUI_HEADER_TEXT 'nsDialogsPage_2' 'nsDialogsPage_2'
	nsDialogs::Create /NOUNLOAD 1018
	Pop $0
	${NSD_CreateButton} 33% 33% 33% 33% 'nsDialogsPage_2'
	Pop $0
	nsDialogs::Show
FunctionEnd
