Mercurial > mxe-octave
comparison makeinst-script.sh @ 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 | 14ad478dc07b |
children | 9d402d735dd1 |
comparison
equal
deleted
inserted
replaced
3955:f96ff976ede7 | 3956:125325a2a2c4 |
---|---|
377 Delete "\$INSTDIR\\*.*" | 377 Delete "\$INSTDIR\\*.*" |
378 RmDir "\$INSTDIR" | 378 RmDir "\$INSTDIR" |
379 | 379 |
380 ; didnt remove directory ? most likely from not all files removed | 380 ; didnt remove directory ? most likely from not all files removed |
381 IfErrors 0 uninstall_done | 381 IfErrors 0 uninstall_done |
382 MessageBox MB_YESNO "One or more folders were not deleted because they contain extra files. Try to delete them?" IDNO uninstall_done | 382 MessageBox MB_YESNO "One or more folders were not uninstalled because they contain extra files. Try to delete them?" IDNO uninstall_done |
383 RMDir /r "\$INSTDIR" | 383 RMDir /r "\$INSTDIR" |
384 | |
385 IfErrors 0 uninstall_done | |
386 MessageBox MB_YESNO "One of more files were still not uninstalled. Do you want to delete them on the next reboot?" IDNO uninstall_done | |
387 RMDir /r /REBOOTOK "\$INSTDIR" | |
384 uninstall_done: | 388 uninstall_done: |
385 | 389 |
386 SectionEnd | 390 SectionEnd |
387 | 391 |
388 ; Function to detect Windows version and abort if Octave is unsupported in the current platform | 392 ; Function to detect Windows version and abort if Octave is unsupported in the current platform |