![]() |
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? |
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.
|
Quote:
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.