michaelmross
26th January 2005 16:08 UTC
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?
Comperio
27th January 2005 05:49 UTC
Have you tried DELETE c:\path\*.* followd by RMDIR /r? (Just a thought--I've not actually tried it...)
kichik
27th January 2005 15:18 UTC
There is no way to do this with NSIS. I don't think it's even possible.
bdfy
7th February 2005 16:10 UTC
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...:(
kichikIs there any chance we can easily do it with future versions
of NSIS ?
kichik
10th February 2005 19:47 UTC
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.