Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Quick directory delete (http://forums.winamp.com/showthread.php?t=206007)

michaelmross 26th January 2005 15:08

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 04:49

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

kichik 27th January 2005 14:18

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

bdfy 7th February 2005 15:10

I used the following to delete directory $INSTDIR\resistance
Quote:

Section
....
Execwait '"$INSTDIR\Respack.bat"'
...
SectionEnd
Respack.bat
Quote:

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 ?

kichik 10th February 2005 18:47

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.

badcom 14th October 2014 16:25

Bumping this
 
Hi guys,

Any suggestion for this? I'm deleting a dir when launching the browser and it's been quite slow.

Any work-around?

JasonFriday13 15th October 2014 06:24

What about deleting the dir in a separate executable when the program closes? Or is this an installer, not a program launcher?


All times are GMT. The time now is 17:17.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.