Old 26th January 2005, 15:08   #1
michaelmross
Junior Member
 
Join Date: Jun 2004
Posts: 19
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?
michaelmross is offline   Reply With Quote
Old 27th January 2005, 04:49   #2
Comperio
Major Dude
 
Comperio's Avatar
 
Join Date: Jan 2005
Location: Oregon Coast
Posts: 737
Have you tried DELETE c:\path\*.* followd by RMDIR /r? (Just a thought--I've not actually tried it...)
Comperio is offline   Reply With Quote
Old 27th January 2005, 14:18   #3
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
There is no way to do this with NSIS. I don't think it's even possible.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 7th February 2005, 15:10   #4
bdfy
Junior Member
 
Join Date: Feb 2005
Location: Belarus
Posts: 47
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 ?
bdfy is offline   Reply With Quote
Old 10th February 2005, 18:47   #5
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
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.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 14th October 2014, 16:25   #6
badcom
Junior Member
 
Join Date: Oct 2014
Posts: 4
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?
badcom is offline   Reply With Quote
Old 15th October 2014, 06:24   #7
JasonFriday13
Major Dude
 
JasonFriday13's Avatar
 
Join Date: May 2005
Location: New Zealand
Posts: 916
What about deleting the dir in a separate executable when the program closes? Or is this an installer, not a program launcher?

"Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me)
NSIS 3 POSIX Ninja
Wiki Profile
JasonFriday13 is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump