Removing obsolete Inno files

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.

+4
source share
1 answer

It turns out that if you delete a file that was previously part of your installation during the upgrade, Inno will display an error message when uninstalling the product. Thus, the only way to handle this is to completely remove the previous version as part of the update for the new version.

+1
source

All Articles