]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
win32: In silent mode, enable fd and plugins by default
authorNorbert Bizet <norbert.bizet@baculasystems.com>
Fri, 2 Oct 2020 09:48:37 +0000 (05:48 -0400)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:03:28 +0000 (09:03 +0100)
bacula/src/win32/full_win32_installer/winbacula.nsi
bacula/src/win32/win32_installer/winbacula.nsi
bacula/src/win32/win64_installer/winbacula.nsi

index acb463a8420a22b4431bb0f4c98e988766820e8f..ed2249aebaef6365ad974b414794f5938a357499 100644 (file)
@@ -1306,15 +1306,15 @@ FunctionEnd
 
 ; in silent mode, we manually select or deselect modules, depending on cmdline parameter
 Function SilentSelectComponents
-  ClearErrors
-  ${GetOptions} $CMDLINE "-ComponentFile" $TmpComponent
-  ${IfNot} ${Errors}
-    !InsertMacro SelectSection ${SecFileDaemon}
-    !InsertMacro SetSectionFlag ${SecFileDaemon} ${SF_RO}
-  ${Else}
-    !InsertMacro UnselectSection ${SecFileDaemon}
-    !InsertMacro ClearSectionFlag ${SecFileDaemon} ${SF_RO}
-  ${EndIf}
+  ; by default fd and plugins are selected
+  !InsertMacro SelectSection ${SecFileDaemon}
+  !InsertMacro SetSectionFlag ${SecFileDaemon} ${SF_RO}
+  !InsertMacro SelectSection ${SecAllDrivesPlugin}
+  !InsertMacro SetSectionFlag ${SecAllDrivesPlugin} ${SF_RO}
+  !InsertMacro SelectSection ${SecWinBMRPlugin}
+  !InsertMacro SetSectionFlag ${SecWinBMRPlugin} ${SF_RO}
+  !InsertMacro SelectSection ${SecCDPPlugin}
+  !InsertMacro SetSectionFlag ${SecCDPPlugin} ${SF_RO}
   ClearErrors
   ${GetOptions} $CMDLINE "-ComponentStorage" $TmpComponent
   ${IfNot} ${Errors}
@@ -1352,33 +1352,6 @@ Function SilentSelectComponents
     !InsertMacro ClearSectionFlag ${SecTrayMonitor} ${SF_RO}
   ${EndIf}
   ClearErrors
-  ${GetOptions} $CMDLINE "-ComponentAllDrivesPlugin" $TmpComponent
-  ${IfNot} ${Errors}
-    !InsertMacro SelectSection ${SecAllDrivesPlugin}
-    !InsertMacro SetSectionFlag ${SecAllDrivesPlugin} ${SF_RO}
-  ${Else}
-    !InsertMacro UnselectSection ${SecAllDrivesPlugin}
-    !InsertMacro ClearSectionFlag ${SecAllDrivesPlugin} ${SF_RO}
-  ${EndIf}
-  ClearErrors
-  ${GetOptions} $CMDLINE "-ComponentWinBMRPlugin" $TmpComponent
-  ${IfNot} ${Errors}
-    !InsertMacro SelectSection ${SecWinBMRPlugin}
-    !InsertMacro SetSectionFlag ${SecWinBMRPlugin} ${SF_RO}
-  ${Else}
-    !InsertMacro UnselectSection ${SecWinBMRPlugin}
-    !InsertMacro ClearSectionFlag ${SecWinBMRPlugin} ${SF_RO}
-  ${EndIf}
-  ClearErrors
-  ${GetOptions} $CMDLINE "-ComponentCDPPlugin" $TmpComponent
-  ${IfNot} ${Errors}
-    !InsertMacro SelectSection ${SecCDPPlugin}
-    !InsertMacro SetSectionFlag ${SecCDPPlugin} ${SF_RO}
-  ${Else}
-    !InsertMacro UnselectSection ${SecCDPPlugin}
-    !InsertMacro ClearSectionFlag ${SecCDPPlugin} ${SF_RO}
-  ${EndIf}
-  ClearErrors
 FunctionEnd
 
 Function SelectPreviousComponents
index fe2c5b91be14ade9ade388a11b1047143877cd21..32cb41d524c9145f268aa59623b62c6ea4e1d2ce 100644 (file)
@@ -1169,15 +1169,15 @@ FunctionEnd
 
 ; in silent mode, we manually select or deselect modules, depending on cmdline parameter
 Function SilentSelectComponents
-  ClearErrors
-  ${GetOptions} $CMDLINE "-ComponentFile" $TmpComponent
-  ${IfNot} ${Errors}
-    !InsertMacro SelectSection ${SecFileDaemon}
-    !InsertMacro SetSectionFlag ${SecFileDaemon} ${SF_RO}
-  ${Else}
-    !InsertMacro UnselectSection ${SecFileDaemon}
-    !InsertMacro ClearSectionFlag ${SecFileDaemon} ${SF_RO}
-  ${EndIf}
+  ; by default fd and plugins are selected
+  !InsertMacro SelectSection ${SecFileDaemon}
+  !InsertMacro SetSectionFlag ${SecFileDaemon} ${SF_RO}
+  !InsertMacro SelectSection ${SecAllDrivesPlugin}
+  !InsertMacro SetSectionFlag ${SecAllDrivesPlugin} ${SF_RO}
+  !InsertMacro SelectSection ${SecWinBMRPlugin}
+  !InsertMacro SetSectionFlag ${SecWinBMRPlugin} ${SF_RO}
+  !InsertMacro SelectSection ${SecCDPPlugin}
+  !InsertMacro SetSectionFlag ${SecCDPPlugin} ${SF_RO}
   ClearErrors
   ${GetOptions} $CMDLINE "-ComponentStorage" $TmpComponent
   ${IfNot} ${Errors}
@@ -1215,33 +1215,6 @@ Function SilentSelectComponents
     !InsertMacro ClearSectionFlag ${SecTrayMonitor} ${SF_RO}
   ${EndIf}
   ClearErrors
-  ${GetOptions} $CMDLINE "-ComponentAllDrivesPlugin" $TmpComponent
-  ${IfNot} ${Errors}
-    !InsertMacro SelectSection ${SecAllDrivesPlugin}
-    !InsertMacro SetSectionFlag ${SecAllDrivesPlugin} ${SF_RO}
-  ${Else}
-    !InsertMacro UnselectSection ${SecAllDrivesPlugin}
-    !InsertMacro ClearSectionFlag ${SecAllDrivesPlugin} ${SF_RO}
-  ${EndIf}
-  ClearErrors
-  ${GetOptions} $CMDLINE "-ComponentWinBMRPlugin" $TmpComponent
-  ${IfNot} ${Errors}
-    !InsertMacro SelectSection ${SecWinBMRPlugin}
-    !InsertMacro SetSectionFlag ${SecWinBMRPlugin} ${SF_RO}
-  ${Else}
-    !InsertMacro UnselectSection ${SecWinBMRPlugin}
-    !InsertMacro ClearSectionFlag ${SecWinBMRPlugin} ${SF_RO}
-  ${EndIf}
-  ClearErrors
-  ${GetOptions} $CMDLINE "-ComponentCDPPlugin" $TmpComponent
-  ${IfNot} ${Errors}
-    !InsertMacro SelectSection ${SecCDPPlugin}
-    !InsertMacro SetSectionFlag ${SecCDPPlugin} ${SF_RO}
-  ${Else}
-    !InsertMacro UnselectSection ${SecCDPPlugin}
-    !InsertMacro ClearSectionFlag ${SecCDPPlugin} ${SF_RO}
-  ${EndIf}
-  ClearErrors
 FunctionEnd
 
 Function SelectPreviousComponents
index 6d2d711d2f7cb8df66fcfcd54f67066700273fd8..d5e2d120c3e90bde1e6b05f39e7ebbe41bc120e3 100644 (file)
@@ -1108,15 +1108,15 @@ FunctionEnd
 
 ; in silent mode, we manually select or deselect modules, depending on cmdline parameter
 Function SilentSelectComponents
-  ClearErrors
-  ${GetOptions} $CMDLINE "-ComponentFile" $TmpComponent
-  ${IfNot} ${Errors}
-    !InsertMacro SelectSection ${SecFileDaemon}
-    !InsertMacro SetSectionFlag ${SecFileDaemon} ${SF_RO}
-  ${Else}
-    !InsertMacro UnselectSection ${SecFileDaemon}
-    !InsertMacro ClearSectionFlag ${SecFileDaemon} ${SF_RO}
-  ${EndIf}
+  ; by default fd and plugins are selected
+  !InsertMacro SelectSection ${SecFileDaemon}
+  !InsertMacro SetSectionFlag ${SecFileDaemon} ${SF_RO}
+  !InsertMacro SelectSection ${SecAllDrivesPlugin}
+  !InsertMacro SetSectionFlag ${SecAllDrivesPlugin} ${SF_RO}
+  !InsertMacro SelectSection ${SecWinBMRPlugin}
+  !InsertMacro SetSectionFlag ${SecWinBMRPlugin} ${SF_RO}
+  !InsertMacro SelectSection ${SecCDPPlugin}
+  !InsertMacro SetSectionFlag ${SecCDPPlugin} ${SF_RO}
   ClearErrors
   ${GetOptions} $CMDLINE "-ComponentStorage" $TmpComponent
   ${IfNot} ${Errors}
@@ -1154,33 +1154,6 @@ Function SilentSelectComponents
     !InsertMacro ClearSectionFlag ${SecTrayMonitor} ${SF_RO}
   ${EndIf}
   ClearErrors
-  ${GetOptions} $CMDLINE "-ComponentAllDrivesPlugin" $TmpComponent
-  ${IfNot} ${Errors}
-    !InsertMacro SelectSection ${SecAllDrivesPlugin}
-    !InsertMacro SetSectionFlag ${SecAllDrivesPlugin} ${SF_RO}
-  ${Else}
-    !InsertMacro UnselectSection ${SecAllDrivesPlugin}
-    !InsertMacro ClearSectionFlag ${SecAllDrivesPlugin} ${SF_RO}
-  ${EndIf}
-  ClearErrors
-  ${GetOptions} $CMDLINE "-ComponentWinBMRPlugin" $TmpComponent
-  ${IfNot} ${Errors}
-    !InsertMacro SelectSection ${SecWinBMRPlugin}
-    !InsertMacro SetSectionFlag ${SecWinBMRPlugin} ${SF_RO}
-  ${Else}
-    !InsertMacro UnselectSection ${SecWinBMRPlugin}
-    !InsertMacro ClearSectionFlag ${SecWinBMRPlugin} ${SF_RO}
-  ${EndIf}
-  ClearErrors
-  ${GetOptions} $CMDLINE "-ComponentCDPPlugin" $TmpComponent
-  ${IfNot} ${Errors}
-    !InsertMacro SelectSection ${SecCDPPlugin}
-    !InsertMacro SetSectionFlag ${SecCDPPlugin} ${SF_RO}
-  ${Else}
-    !InsertMacro UnselectSection ${SecCDPPlugin}
-    !InsertMacro ClearSectionFlag ${SecCDPPlugin} ${SF_RO}
-  ${EndIf}
-  ClearErrors
 FunctionEnd
 
 Function SelectPreviousComponents