-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathnsDialogs (MUI).nsi
56 lines (37 loc) · 1.25 KB
/
nsDialogs (MUI).nsi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
; Scaffolding by https://github.com/idleberg/NSIS-Sublime-Text
; Includes ---------------------------------
!include nsDialogs.nsh
!include LogicLib.nsh
!include MUI2.nsh
; Settings ---------------------------------
Name "installer_name"
OutFile "installer_name.exe"
RequestExecutionLevel user
InstallDir "$PROGRAMFILES\installer_name"
; Pages ------------------------------------
Page custom "nsdialog_page" "nsdialog_page_validation"
!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
; Variables --------------------------------
; Languages --------------------------------
!insertmacro MUI_LANGUAGE "English"
; Functions --------------------------------
Function "nsdialog_page"
nsDialogs::Create 1018
Pop $0
# your code here
nsDialogs::Show
FunctionEnd
Function "nsdialog_page_validation"
# your code here
FunctionEnd
; Sections ---------------------------------
Section "section_name" section_index
# your code here
SectionEnd
; Descriptions -----------------------------
LangString DESC_section_index ${LANG_English} "section_description"
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
!insertmacro MUI_DESCRIPTION_TEXT ${section_index} $(DESC_section_index)
!insertmacro MUI_FUNCTION_DESCRIPTION_END