File is missing after an upgrade - Advanced Installer Community
Zsolt Kollarits
Posts: 409
Joined: Fri May 29, 2015 10:36 am

File is missing after an upgrade

Dear Advanced Installer Support Team,

One of our customers reported an issue: some of our files are simply missing from his PC after he upgraded our product to a newer version.

The scenario is the following:

Product version 1.0 contains a file with version number 13.1.7.0. The "Overwrite only if the existing file is older" option is selected for that file (Edit File dialog).
Product version 2.0 contains a the same file with version number 13.1.5.0

After installing version 2.0, which is a major update (new Product Code), over version 1.0, the relevant file is gone. We think that "Overwrite only if the existing file is older" option should mean that 13.1.5.0 won't be installed, since it's an older version, but for sure the original file: 13.1.7.0 should stay there. Having no files on the PC after the upgrade is not an option at all.

Could you please suggest something for us?

Best regards,
Zsolt Kollarits
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: File is missing after an upgrade

Hello Zsolt,

A major upgrade is a two-step process:
1) the old version is uninstalled
2) the new version is installed

For deciding if a file is installed or not Windows Installer uses the file versioning rules. Therefore, a file in the new package which has a version lower than the file already present on the machine will not be installed (Action: Null). However, when the old version is uninstalled the file on the machine is removed, so the file is missing after upgrade. This is a known Windows Installer bug.

As a solution, you could use a higher version for your file or you can use the "Always overwrite existing file" option ("Files and Folders" page --> right click on your file --> "Properties" --> "Operations" tab)

All the best,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”