comparison 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
comparison
equal deleted inserted replaced
3953:30391f9f46e8 3954:14ad478dc07b
374 374
375 # last bit of the uninstaller 375 # last bit of the uninstaller
376 cat >> $OUTFILE << EOF 376 cat >> $OUTFILE << EOF
377 Delete "\$INSTDIR\\*.*" 377 Delete "\$INSTDIR\\*.*"
378 RmDir "\$INSTDIR" 378 RmDir "\$INSTDIR"
379
380 ; didnt remove directory ? most likely from not all files removed
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
383 RMDir /r "\$INSTDIR"
384 uninstall_done:
385
379 SectionEnd 386 SectionEnd
380 387
381 ; Function to detect Windows version and abort if Octave is unsupported in the current platform 388 ; Function to detect Windows version and abort if Octave is unsupported in the current platform
382 Function DetectWinVer 389 Function DetectWinVer
383 Push \$0 390 Push \$0