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.

43 votes
Vote 0 votes Vote Vote
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service

    You'll receive a confirmation email with a link to create a password (optional).

    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

      You'll receive a confirmation email with a link to create a password (optional).

      Signed in as (Sign out)
      Submitting...
      • Andrei MaksimovAndrei Maksimov commented  · 

        Eugene Shebeko, please post your solution! We would be very pleased with this!

      • Thomas ScheelThomas Scheel commented  · 

        @Eugene: a post of your solution would be helpful.

      • Eugene ShebekoEugene Shebeko commented  · 

        I gues, I have solution to make this, using only Pascal script.Work pretty fine.

      Knowledge Base and Helpdesk