From c757a3d88997ce0493b0bd38e58adfddc624418a Mon Sep 17 00:00:00 2001 From: Max Gaukler Date: Wed, 16 Oct 2024 19:59:36 +0200 Subject: [PATCH] Windows setup: Fix silent installation Now the setup can be called with /S for a silent installation Fixes https://github.com/t-oster/VisiCut/issues/703 --- distribute/windows/installer.nsi | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/distribute/windows/installer.nsi b/distribute/windows/installer.nsi index 2535e080..4c06c529 100644 --- a/distribute/windows/installer.nsi +++ b/distribute/windows/installer.nsi @@ -40,8 +40,6 @@ !define MUI_PAGE_HEADER_SUBTEXT "Please wait while ${AppName} is being installed." ; Uncomment the next line if you want optional components to be selectable ; !insertmacro MUI_PAGE_COMPONENTS - !define MUI_PAGE_CUSTOMFUNCTION_PRE myPreInstfiles - !define MUI_PAGE_CUSTOMFUNCTION_LEAVE RestoreSections !insertmacro MUI_PAGE_DIRECTORY !insertmacro MUI_PAGE_INSTFILES !insertmacro MUI_PAGE_FINISH @@ -170,29 +168,8 @@ SectionEnd ;Installer Functions Function .onInit - - ;Extract InstallOptions INI Files - Call SetupSections - -FunctionEnd - -Function myPreInstfiles - - Call RestoreSections - SetAutoClose true - -FunctionEnd - -Function RestoreSections - !insertmacro SelectSection ${SecAppFiles} - !insertmacro SelectSection ${SecCreateShortcut} - -FunctionEnd - -Function SetupSections - !insertmacro UnselectSection ${SecAppFiles} - !insertmacro UnselectSection ${SecCreateShortcut} FunctionEnd + ;-------------------------------- ;Uninstaller Section