I'm having trouble understanding how to cleanly delete an obsolete file that used to be part of my Inno Setup but no longer works. I would prefer it not to be in the destination folder when updating a new version of my product.
I tried to delete it in the [Run] section. This worked, but when I deleted it, I got a dialog box saying "Some items cannot be deleted, they can be deleted manually."
It would be nice not to completely uninstall the old version before installing the new version. I just want the new installer to delete one obsolete file when it starts.
Is there a way to mark a file as obsolete? I looked through the Inno documentation but found nothing.
Any help would be greatly appreciated ... thanks.
source
share