Archive: Quick directory delete


Quick directory delete
On uninstall, I want to delete a directory that may contain several hundred files. With RMDIR /r, each file is individually deleted - this is very slow and unnerving for the user. Is there a way to delete the whole folder at once without the recursive process of deleting each file individually first?


Have you tried DELETE c:\path\*.* followd by RMDIR /r? (Just a thought--I've not actually tried it...)


There is no way to do this with NSIS. I don't think it's even possible.


I used the following to delete directory $INSTDIR\resistance

Section
....
Execwait '"$INSTDIR\Respack.bat"'
...
SectionEnd
Respack.bat
RMDir /s /q resistance
Note: you will see splash od DOs screen...:(
kichik
Is there any chance we can easily do it with future versions
of NSIS ?

What do you think DOS's RMDIR does differently? Have you tried using SetDetailsPrint to disable output of NSIS's RMDir? That might speed it up a bit.