Archive: uninstall leaves bin directory behind


uninstall leaves bin directory behind
My uninstall always leaves behind the bin directory for some reason. I have tried various things including reordering. I have made sure the directory is empty. Other directories are deleted and all files are deleted.
The command I use is as per the other directories which work:

RMDIR "$INSTDIR\Bin"

Can anybody advise why this might be?

Ben


Are you sure that it's not empty when you try to delete it? Try to put a MessageBox command before the command RMDir and check if the folder is really empty, put another one after the command to see if it was deleted. Sometimes it can have an hidden file you can't see too.

If it isn't solving your problem, try RMDir /r instead of just RMDir, it will remove all files and folders inside the folder you want. But this won't work if there is a running program.


Thanks deguix, but I wanted to avoid the /r switch in case the user had put some of their own files into the bin directory. I am surprised if the reboot is needed as well...