Old 17th October 2012, 20:43   #1
Junior Member
Join Date: Oct 2012
Posts: 2
Error removing main directory

I have installation going and testing removing. My uninstall removes everything but leaves the main directory which now is empty and I have no access. Says to check if drive is full (not), write protected or in use. I cannot go into the directory as get the same result. I get all the directories empty and removed, but the main directory is left. Part of my uninstall script is:

# Remove files
delete $INSTDIR\*.*
delete $INSTDIR\db\*.*
delete $INSTDIR\Messages\*.*
delete $INSTDIR\Sounds\*.*

rmDir $INSTDIR\db
rmDIR $INSTDIR\Messages
rmDIR $INSTDIR\Documents

# Remove the install directory

Any suggestions? Now I have an install directory left on the drive that I cannot do anything with.

rvideo is offline   Reply With Quote
Old 17th October 2012, 21:21   #2
Major Dude
Join Date: Oct 2006
Posts: 1,892
There's probably still some process running that has the directory locked. A common culprit I tend to forget is cmd.exe, with the directory in question opened.
MSG is offline   Reply With Quote
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