-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathInstallOptions.nsi
More file actions
49 lines (32 loc) · 1019 Bytes
/
InstallOptions.nsi
File metadata and controls
49 lines (32 loc) · 1019 Bytes
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
; Scaffolding by https://github.com/idleberg/NSIS-Sublime-Text
; Settings ---------------------------------
Name "installer_name"
OutFile "installer_name.exe"
RequestExecutionLevel user
InstallDir "$PROGRAMFILES\installer_name"
; Includes ---------------------------------
ReserveFile "${NSISDIR}\Plugins\InstallOptions.dll"
ReserveFile "${NSISDIR}\Examples\InstallOptions\test.ini"
; Pages ------------------------------------
Page custom "iopage" "iopage_validation" ": InstallOptions Page"
Page components
Page directory
Page instfiles
; Sections ---------------------------------
Section "section_name" section_index
# your code here
SectionEnd
; Functions --------------------------------
Function .onInit
InitPluginsDir
File "/oname=$PLUGINSDIR\ioFile.ini" "${NSISDIR}\Examples\InstallOptions\test.ini"
FunctionEnd
Function "iopage"
Push $R0
InstallOptions::dialog "$PLUGINSDIR\ioFile.ini"
Pop $R0
Pop $R0
FunctionEnd
Function "iopage_validation"
# your code here
FunctionEnd