Leave some files on upgrade but not on remove

Got a problem you cannot solve? Try here.
twjanes
Posts: 1
Joined: Mon Jul 21, 2014 6:10 am

Leave some files on upgrade but not on remove

Postby twjanes » Mon Jul 21, 2014 6:23 am

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.

bokkie
Posts: 767
Joined: Sun Feb 08, 2009 6:30 am

Re: Leave some files on upgrade but not on remove

Postby bokkie » Mon Jul 21, 2014 7:29 am

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.
Peter. Smartly dressed, he still resembles an unmade bed.
InstallAware MVP

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Leave some files on upgrade but not on remove

Postby FrancescoT » Mon Jul 21, 2014 11:22 am

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
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot] and 128 guests