Skip to content

Commit c757a3d

Browse files
committed
Windows setup: Fix silent installation
Now the setup can be called with /S for a silent installation Fixes #703
1 parent d1cc740 commit c757a3d

File tree

1 file changed

+1
-24
lines changed

1 file changed

+1
-24
lines changed

distribute/windows/installer.nsi

+1-24
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@
4040
!define MUI_PAGE_HEADER_SUBTEXT "Please wait while ${AppName} is being installed."
4141
; Uncomment the next line if you want optional components to be selectable
4242
; !insertmacro MUI_PAGE_COMPONENTS
43-
!define MUI_PAGE_CUSTOMFUNCTION_PRE myPreInstfiles
44-
!define MUI_PAGE_CUSTOMFUNCTION_LEAVE RestoreSections
4543
!insertmacro MUI_PAGE_DIRECTORY
4644
!insertmacro MUI_PAGE_INSTFILES
4745
!insertmacro MUI_PAGE_FINISH
@@ -170,29 +168,8 @@ SectionEnd
170168
;Installer Functions
171169

172170
Function .onInit
173-
174-
;Extract InstallOptions INI Files
175-
Call SetupSections
176-
177-
FunctionEnd
178-
179-
Function myPreInstfiles
180-
181-
Call RestoreSections
182-
SetAutoClose true
183-
184-
FunctionEnd
185-
186-
Function RestoreSections
187-
!insertmacro SelectSection ${SecAppFiles}
188-
!insertmacro SelectSection ${SecCreateShortcut}
189-
190-
FunctionEnd
191-
192-
Function SetupSections
193-
!insertmacro UnselectSection ${SecAppFiles}
194-
!insertmacro UnselectSection ${SecCreateShortcut}
195171
FunctionEnd
172+
196173

197174
;--------------------------------
198175
;Uninstaller Section

0 commit comments

Comments
 (0)