Application Upgrade Deletes Executable - Advanced Installer Community
leeroy
Posts: 41
Joined: Mon May 03, 2021 11:13 pm

Application Upgrade Deletes Executable

We have an application from 2021 that uses Advanced Installer 18.3 and the 2022 version of the product uses 19.6

When installing fresh everything is totally fine and works as expected. However, running the installer to upgrade the previous version it all goes well with one exception. The previous version is uninstalled, the new version installs, BUT the executable is either excluded or deleted from the previous installer upon completion leaving the new version in a broken state.
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Application Upgrade Deletes Executable

Hello,

I am not quite sure I fully understand what the issue is here.

It is normal for the previous executable to be removed during an upgrade operation.

If you do not want to remove it, please have a look over the following article which explains how to achieve that:

How do I prevent a file or registry entry from being uninstalled or repaired?

Hope this helps!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
leeroy
Posts: 41
Joined: Mon May 03, 2021 11:13 pm

Re: Application Upgrade Deletes Executable

Hi Catalin,

The problem is not that a previous file is being removed, we want that, it is that a new file is either not being installed or being removed from the previous uninstaller in post.

Version 1 = AI 18.3 (2021)
Version 2 = AI 19.6 (2022)

Success Path:
1. Install "Version 1" (Or just previously installed from last year)
2. Uninstall "Version 1"
3. Install "Version 2"

Failure Path:
1. Install "Version 1" (Or just previously installed from last year)
2. Install "Version 2" (This removes the previous, installs the new version, BUT does not include the actual executable - "executable.exe" is missing)

This is the first time in nearly 10 years this has happened. It seems the AI 18.3 uninstaller is causing problems for the 19.6 installer. If we create a "version 3" that upgrades "version 2" that also uses AI 19.6 this is NOT a problem and works fine.
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Application Upgrade Deletes Executable

Hello,

Thank you for the explanation, now I understand what the problem is.

That might be happening due to file versioning rules of Windows Installer.

For more information about this, please have a look over the following FAQ:

Why do one or more files disappear after an upgrade is performed?

In the above article, a solution is also presented.

Hope it helps!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
leeroy
Posts: 41
Joined: Mon May 03, 2021 11:13 pm

Re: Application Upgrade Deletes Executable

Hi Catalin,

Yes, that appears to be the issue. It looks like there was a bug in our versioning and it was being purged on upgrade due to that scenario. The suggestion in the article does clear this up for us.

Kind regards,
Lee
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Application Upgrade Deletes Executable

I am glad to hear everything is working as expected now, Lee!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”