Old 27th November 2015, 18:26   #1
Bungkai
Junior Member
 
Join Date: Nov 2015
Posts: 23
Deleting a folder

Simple question I know, I see
PHP Code:
 RMDir "$INSTDIR
being thrown around with or without the /r flag. I've placed a folder on the desktop and I was able to delete the files just fine. But I can't delete the directory. Also tried moving it with rename and whatnot but it doesn't seem to budge.

I set $INSTDIR as $DESKTOP/[folder name], and i checked to confirm it's the right directory with detailprint. But it won't budge. Need a bit of help with this issue.
Bungkai is offline   Reply With Quote
Old 27th November 2015, 21:27   #2
LoRd_MuldeR
Major Dude
 
LoRd_MuldeR's Avatar
 
Join Date: Sep 2005
Location: Somewhere over the Slaughterhouse
Posts: 797
Make sure your current $OUTDIR is not the directory you want to delete, or a sub-directory thereof.

Also make sure no other process is currently "locking" the directory...

My Plugins: StdUtils | NSISList | CPUFeatures | ExecTimeout | KillProc
My source of inspiration: http://youtu.be/lCwY4_0W1YI
LoRd_MuldeR is offline   Reply With Quote
Old 27th November 2015, 22:23   #3
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,445
And if all else fails, download Process Monitor from Microsoft and look at what is actually going on...

IntOp $PostCount $PostCount + 1
Anders 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