michaueqq
michaueqq

Reputation: 76

Inno Setup how to NOT delete special folder during uninstall

I'am wondering is it possible to keep my "special" folder on the partition after I uninstall my app? I need to keep some files for possibly next installation and it will be very usefull for me this time. Maybe is there any way to set exact location to uninstall or something like this?

Any ideas?

Upvotes: 0

Views: 1371

Answers (1)

RobeN
RobeN

Reputation: 5456

In order to avoid deletion of installed files/folders during the uninstall process you should use uninsneveruninstall flag described in [Files] section.

uninsneveruninstall

Never remove the file. This flag can be useful when installing 
very common shared files that shouldn't be deleted under any circumstances, 
such as MFC DLLs.
Note that if this flag is combined with the sharedfile flag, 
the file will never be deleted at uninstall time but the reference 
count will still be properly decremented.

Upvotes: 3

Related Questions