Uninstall: Don't uninstall files that have been modified
See discussion of this over the years:
http://news.jrsoftware.org/news/innosetup/msg23027.html
http://news.jrsoftware.org/news/innosetup/msg56090.html
http://news.jrsoftware.org/news/innosetup/msg62005.html
http://news.jrsoftware.org/news/innosetup/msg57194.html
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.
5 comments
-
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.