I'm having trouble understanding how to cleanly remove an obsolete file that used to be part of my Inno Setup, but is no longer. I'd greatly prefer that it not be in the destination folder when updating to the new version of my product.
I tried removing it in the [Run] section. That worked, but when I uninstalled, I got a dialog box saying "Some elements could not be removed. These can be removed manually".
It'd be nice not to have to do a complete uninstall of the old version before installing the new version. I just want the new installer to remove one obsolete file when it runs.
Is there a way of tagging the file as obsolete? I've looked at Inno's documentation, but couldn't find anything.
Any help would be greatly appreciated...thanks.
[InstallDelete]
section, but it would show the page that the file could not be closed if the file is in use and that seems you don't want... - TLamaMoveFileEx
with theMOVEFILE_DELAY_UNTIL_REBOOT
flag specified explicitly. That may register that deletion for the next reboot without the need of telling that to user. - TLama