Page 1 of 1

Never Overwrite files not working

Posted: Thu Apr 23, 2015 3:30 pm
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

Re: Never Overwrite files not working

Posted: Fri Apr 24, 2015 12:54 pm
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

Re: Never Overwrite files not working

Posted: Fri Apr 24, 2015 1:42 pm
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

Re: Never Overwrite files not working

Posted: Mon Apr 27, 2015 12:01 pm
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