diff makeinst-script.sh @ 3954:14ad478dc07b

Installer: prompt to unstill additional files (Bug #45188) * makeinst-script.sh: prompt on failure to selete INSTDIR and try delete all.
author John D
date Thu, 28 May 2015 21:45:33 -0400
parents 1191cff7f132
children 125325a2a2c4
line wrap: on
line diff
--- a/makeinst-script.sh	Wed May 27 19:12:43 2015 -0400
+++ b/makeinst-script.sh	Thu May 28 21:45:33 2015 -0400
@@ -376,6 +376,13 @@
   cat >> $OUTFILE << EOF
  Delete "\$INSTDIR\\*.*"
  RmDir "\$INSTDIR"
+
+ ; 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
+    RMDir /r "\$INSTDIR"
+uninstall_done:
+
 SectionEnd
 
 ; Function to detect Windows version and abort if Octave is unsupported in the current platform