Problem when running an update - Advanced Installer Community
jusher
Posts: 195
Joined: Thu Dec 22, 2011 12:00 pm

Problem when running an update

Hi,

I have an MSI that has just been upgraded from version 45 to 46.
Usually, this will just install over the top of the previous version.
However, I changed one of the files from version 27 to 28 in the application directory.
This file did not then get installed in the application directory even though the operation "overwrite only if existing file is older" was checked.

I changed this to "Always overwrite existing file" and this then installed the file.

The problem is the old file (27) has a data of 07/03/2013 12:37 and the new(28) file 12/01/2015 15:58. I have never had to change this operation before.

Any idea what might be wrong? I am running with the latest version of AI.

Regards,
John
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Problem when running an update

Hello John,

This usually happens when the file from the upgraded MSI has a lower version than the one from the old (installed) MSI. When a file already exists on target machine Windows Installer use the files versioning rules, accordingly to whom the version check criteria prevails over the others, to decide if a file is installed or not.

Can you please send us the .AIPs (project files) of the old and new MSI version and a verbose log of the upgrade installation to support at advancedinstaller dot com so we can investigate them.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Problem when running an update

Hello John,

I've tested your installation setups (old and new) and it seems this happens because the DLL file of your old installation has a greater version (v0.27.27.0) than the one (v0.0.28.0) from your new installation. This happens due to a Windows Installer bug which manifests during upgrade.

To avoid this issue you should either add a higher version (than v0.27.27.0) for the DLL included in the new version of your installer or, as you already found, you should use the "Always overwrite existing file" option.

If you have any questions let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”