forked from Tobbe/losi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PageHowLS.nsh
39 lines (31 loc) · 1.26 KB
/
PageHowLS.nsh
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
; How to install LS (for all users, or just for the current user)
!ifndef PAGE_HOW_LS
!define PAGE_HOW_LS
!include WinVer.nsh
Page custom ioHowLS
Function ioHowLS
${IfNot} ${SectionIsSelected} ${SecCore}
Abort
${EndIf}
StrCmp $advancedInstall "true" 0 end
; This option should not be visible on 9x based systems
; Check weather we're installing on a 9x or NT based system
${IfNot} ${IsNT}
Abort
${EndIf}
;If we get to this point we're not installing on a 9x based machine
!insertmacro MUI_HEADER_TEXT "$(TEXT_IO_TITLE_HOWLS)" "$(TEXT_IO_HOWLS)"
WriteINIStr "$PLUGINSDIR\ioHowLS.ini" "Field 1" "Text" "$(TEXT_IO_TITLE_HOWLS)"
WriteINIStr "$PLUGINSDIR\ioHowLS.ini" "Field 2" "Text" "$(INSTALL_ALL)"
WriteINIStr "$PLUGINSDIR\ioHowLS.ini" "Field 3" "Text" "$(INSTALL_CU)"
WriteINIStr "$PLUGINSDIR\ioHowLS.ini" "Field 4" "Text" "$(INSTALL_NOSHELL)"
!insertmacro MUI_INSTALLOPTIONS_INITDIALOG "ioHowLS.ini"
Pop $R0 ;HWND (handle) of dialog
Push "$PLUGINSDIR\ioHowLS.ini" ;Page .ini file where the field can be found.
Push "$R0" ;Page handle you got when reserving the page.
Push "3" ;Field number to set focus.
Call SetFocus
!insertmacro MUI_INSTALLOPTIONS_SHOW
end:
FunctionEnd
!endif