Uninstall: Don't uninstall files that have been modified
See discussion of this over the years:
We have a complex application, with numerous configuration files which are installed by the installation package. If the end-user modifies a configuration file, then we don't want it deleted at uninstall time, and don't want it overwritten by upgrades.
As far as I can tell, to implement this Inno Setup should do a hash of such files, and record it in the uninstall log. At uninstall time, check the file's hash, and don't delete the file if it's changed.
AdminDeanna Earley (Admin, Inno Setup) commented
Please take any discussion to the newsgroups, and post samples on the Wiki. Thanks
Andrei Maksimov commented
Eugene Shebeko, please post your solution! We would be very pleased with this!
Thomas Scheel commented
@Eugene: a post of your solution would be helpful.
Андрей Максимов commented
I undestood. Public your solution using Pascal Script please.
Eugene Shebeko commented
I gues, I have solution to make this, using only Pascal script.Work pretty fine.