Could you double check that the path is correct. Things like
InstallDirRegKey might set $instdir to something other than
your expected folder.
Make sure that you have the
in your script.
If it still is unable to delete, try running Process Monitor to see which file is failing and