Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Cannot delete file with no extension (http://forums.winamp.com/showthread.php?t=297117)

ptica 9th September 2008 13:23

Cannot delete file with no extension
 
Hello All,
My script fails to delete or rename file with no extension.
I tried the following:

Delete "$INSTDIR\bin\MT\mt_install"
Rename "$INSTDIR\bin\MT\mt_install"
ExecWait '"rename" "$INSTDIR\bin\MT\mt_install" "mt_install.txt"'
ExecWait '"rename" "$INSTDIR\bin\MT\mt_install mt_install.txt"'
ExecWait '"del" "$INSTDIR\bin\MT\mt_install"'
RMDir /r $INSTDIR\bin\MT

I used SetOutPath $TEMP befor these commands

What could be the problem?

kichik 9th September 2008 17:12

It's lack of extension is probably irrelevant. Make sure the file is really where you think it is with IfFileExists and make sure it isn't used by another application using Process Explorer.

ptica 9th September 2008 18:05

Quote:

Originally posted by kichik
It's lack of extension is probably irrelevant. Make sure the file is really where you think it is with IfFileExists and make sure it isn't used by another application using Process Explorer.
Kudos!
It was locked by another uninstall proccess called by my script:-) I added Sleep and now it works.
Thanks a lot!:-)


All times are GMT. The time now is 04:21.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.