From efb8a14c400adafcfbc3c8ac00b28b046c50cced Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Wed, 6 Jul 2011 14:19:59 +0200 Subject: [PATCH] Fix #1602 about Uninstall /S that should not prompt for user interaction --- bacula/src/win32/win32_installer/winbacula.nsi | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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\*" -- 2.39.5