ptica
9th September 2008 14:23 UTC
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 18:12 UTC
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 19:05 UTC
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!:-)