$PLUGINSDIR not removed
The temporary $PLUGINSDIR is not being removed by my installers.
All of the plugins and temporary images, etc are removed but the folder itself stays behind (empty).
I've tried adding my own RMDir /r to the end of the installer to force the folder to be deleted but this just sets the error flag. I tried adding a Sleep 5000 before the RMDir but this didn't help.
I can remove the directory manually in explorer.
After testing the installer a hundred times I'm left with a hundred empty directories.
Any thoughts?