|
|
|
|
#1 |
|
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?
|
|
|
|
|
|
#2 |
|
Major Dude
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...)
|
|
|
|
|
|
#3 |
|
M.I.A.
[NSIS Dev, Mod] 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 |
|
|
|
|
|
#4 | ||
|
Junior Member
Join Date: Feb 2005
Location: Belarus
Posts: 47
|
I used the following to delete directory $INSTDIR\resistance
Quote:
Quote:
![]() kichik Is there any chance we can easily do it with future versions of NSIS ? |
||
|
|
|
|
|
#5 |
|
M.I.A.
[NSIS Dev, Mod] 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 |
|
|
|
|
|
#6 |
|
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? |
|
|
|
|
|
#7 |
|
Major Dude
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 |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|