Upgrade and unchanged files - Advanced Installer Community
Kratzer
Posts: 66
Joined: Wed Apr 10, 2013 5:36 pm

Upgrade and unchanged files

Hello,

we have a question about Upgrades.

Following situation:

Release setup installs a file. The file is marked for "Overwrite only if existing file is older"

Then we build an upgrade with some changes, but the mentioned file is the same. No new version, no newer change date...
Upgrade is configured as uninstall old version of setup then install new version.

This results in the following issue (we think so):

Uninstall scans the files already installed, the mentioned file is the same.
--> it will be uninstalled because this is the first action of the upgrade
--> it will not be installed again, because the scan of installed files before uninstall detected the same file --> no overwrite

--> after upgrade the file is missing

Is it an issue of AI or MSI? How can this behaviour be fixed?

Thank you and best regards,
Bernd
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Upgrade and unchanged files

Hi Bernd,

Usually, this behaviour occurs when performing an upgrade for versioned files (e.g. .DLLs, .EXEs, etc) when the file from the destination folder has a higher version or the same than the source file.

For details, please check the Why some files are missing from the installation folder when performing an upgrade? article.

Indeed, this is an old Windows Installer bug.

If there is anything else I can help you with, please let me know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Kratzer
Posts: 66
Joined: Wed Apr 10, 2013 5:36 pm

Re: Upgrade and unchanged files

HI Dan,

thank you.

Best regards,
Bernd
Kratzer
Posts: 66
Joined: Wed Apr 10, 2013 5:36 pm

Re: Upgrade and unchanged files

Hi Dan,

one question...

Is the "Shared DLL reference count" still working when using "Always overwrite" even if the new file in upgrade has a newer Version and old Version was installed with another Setup?

Thank you and best regards,
Bernd
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Upgrade and unchanged files

Hi Bernd,

Note that the name of the related file and its GUID must be the same in order to Shared DLL reference count process take place.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”