changeset 3956:125325a2a2c4

nsis-installer: delete remaining files in reboot * makeinst-script.mk: on errors removing files, prompt to delete files on reboot.
author John D
date Mon, 01 Jun 2015 21:25:04 -0400
parents f96ff976ede7
children e8f4a2e6dc73
files makeinst-script.sh
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/makeinst-script.sh	Thu May 28 21:51:36 2015 -0400
+++ b/makeinst-script.sh	Mon Jun 01 21:25:04 2015 -0400
@@ -379,8 +379,12 @@
 
  ; didnt remove directory ? most likely from not all files removed
  IfErrors 0 uninstall_done
-    MessageBox MB_YESNO "One or more folders were not deleted because they contain extra files. Try to delete them?" IDNO uninstall_done
+    MessageBox MB_YESNO "One or more folders were not uninstalled because they contain extra files. Try to delete them?" IDNO uninstall_done
     RMDir /r "\$INSTDIR"
+
+    IfErrors 0 uninstall_done
+        MessageBox MB_YESNO "One of more files were still not uninstalled. Do you want to delete them on the next reboot?" IDNO uninstall_done
+        RMDir /r /REBOOTOK "\$INSTDIR"
 uninstall_done:
 
 SectionEnd