I suggest you ...

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.

49 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Craig McQueenCraig McQueen shared this idea  ·   ·  Admin →

    5 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...

      Feedback and Knowledge Base