Never Overwrite files not working

Got a problem you cannot solve? Try here.
Post Reply
gtalpers
Posts: 6
Joined: Thu Aug 29, 2013 8:46 am

Never Overwrite files not working

Post by gtalpers »

Greetings,

I have an install with the database file marked as Never Overwrite. When I compile a new version of the install and run it, it will overwrite the DB file when it shouldn't. However, when I run the exact same version of the installer twice, it behaves correctly and does not overwrite the DB file. Can you help me understand what is going on here? I cannot have the DB file overwritten by a new build - it must remain as is. I am using a single exe build if that matters.

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

Re: Never Overwrite files not working

Post by FrancescoT »

Dear Gary,

a file is not overwritten if the same exists when the install process is executed.
I suppose instead that such file doesn't exist in your case at install time, because the same has been previously removed when you run a new build of your package over an existing installation. With a full update the existing application is first un-installed and then new one is installed.

You may try to mark such file as "Permanent" along with "Never Overwrite" in Install Files options.

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
gtalpers
Posts: 6
Joined: Thu Aug 29, 2013 8:46 am

Re: Never Overwrite files not working

Post by gtalpers »

Thanks for the reply Francesco.

That is interesting - I am not aware that an uninstall is performed prior to an upgrade. I did not do anything to set that up, so is it done automatically by Windows installer? If so, the Never Overwrite file option would be meaningless because the file has already been uninstalled. Is there a way not to do the uninstall so that the file would still be there?

Thanks again!
Gary
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Never Overwrite files not working

Post by FrancescoT »

Dear Gary,

as I said previously, you may try to mark such file as "Permanent" along with "Never Overwrite" in Install Files options.

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
Post Reply