From: Eric Bollengier Date: Wed, 6 Jul 2011 12:19:59 +0000 (+0200) Subject: Fix #1602 about Uninstall /S that should not prompt for user interaction X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=efb8a14c400adafcfbc3c8ac00b28b046c50cced;p=bacula%2Fbacula Fix #1602 about Uninstall /S that should not prompt for user interaction --- diff --git a/bacula/src/win32/win32_installer/winbacula.nsi b/bacula/src/win32/win32_installer/winbacula.nsi index 941295e223..16bdc8b1d6 100644 --- a/bacula/src/win32/win32_installer/winbacula.nsi +++ b/bacula/src/win32/win32_installer/winbacula.nsi @@ -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\*"