Page 1 of 1

Leave some files on upgrade but not on remove

Posted: Mon Jul 21, 2014 6:23 am
by twjanes
Hi,

I am new to installers so please forgive me if the answer is obvious.

Our application creates some configuration files that are not in the initial install.

What I am trying to achieve is that if the user installs a new version of our product (and therefore does what I think is called a maintenance uninstall) these files are kept, but if they do a manual remove of the product these files are deleted.

Many thanks for any help

Tim.

Re: Leave some files on upgrade but not on remove

Posted: Mon Jul 21, 2014 7:29 am
by bokkie
Tim,

It's quite easy. I'll assume you added the installed using the IDE. Click on Setup Architecture and select Files. In the files view look where the files are listed in the bottom right corner. Double-click the file name you want to retain which will open the Install Files dialog. Near the bottom, you'll see the Permanent File - do not remove upon installation check box. Enable that and hopefully the file in question should survive when you uninstall your package. Does that help?

I assume you have one of the IDE versions of IA installed and not the freebie add-in in VS.

Re: Leave some files on upgrade but not on remove

Posted: Mon Jul 21, 2014 11:22 am
by FrancescoT
Dear Tim,

what do you mean exactly with; "a manual remove of the product these files are deleted"?

if those files are not part of your installer, but instead created by your application at a later time, they will be never removed by a product un-install.

Regards