]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix #1602 about Uninstall /S that should not prompt for user interaction
authorEric Bollengier <eric@eb.homelinux.org>
Wed, 6 Jul 2011 12:19:59 +0000 (14:19 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:49:03 +0000 (14:49 +0200)
bacula/src/win32/win32_installer/winbacula.nsi

index 941295e223e06befa2f15338f8a46285de49eb11..16bdc8b1d6d447b8d9e0a4df0a67126af0557d23 100644 (file)
@@ -677,8 +677,11 @@ Section "Uninstall"
   Delete /REBOOTOK "$INSTDIR\help\*"
 
   ; Check for existing installation
-  MessageBox MB_YESNO|MB_ICONQUESTION \
-  "Would you like to delete the current configuration files and the working state file?" IDNO NoDel
+  IfSilent +2
+    MessageBox MB_YESNO|MB_ICONQUESTION \
+    "Would you like to delete the current configuration files and the working state file?" IDNO NoDel
+
+
     Delete /REBOOTOK "$INSTDIR\*"
     Delete /REBOOTOK "$INSTDIR\working\*"
     Delete /REBOOTOK "$INSTDIR\plugins\*"