Installing an EXE with same product code as minor upgrade - Advanced Installer Community
Zsolt Kollarits
Posts: 409
Joined: Fri May 29, 2015 10:36 am

Installing an EXE with same product code as minor upgrade

Dear Advanced Installer Support Team,

Please let me report a potential issue of your installer to you, here is a little bit of context what we´re doing:

1. Created a major version (single EXE with resources inside; new product code) with version number of 14.0.1.
2. Created a new version (14.0.2) by keeping the product code (to be able to create a patch for 14.0.2).
3. Both versions have been created by having "Install MSI as minor upgrade (if applicable)" checkbox SELECTED.
4. Installed 14.0.1 EXE on a virtual machine.
5. Installed 14.0.2 EXE on the same virtual machine. So basically instead of creating a patch and installing that patch, we directly clicked on the 14.0.2 EXE.
6. A very minimal UI is visible while installing 14.0.2, it seems "Install MSI as minor upgrade" option was applied and the new EXE was installed as a minor upgrade.
7. Version 14.0.2 appears in Programs and Features. Also all of the installed files have correct file version numbers, everything seems to be OK, but our product is not working at all. Whenever we try to launch one of our installed executables, an error dialog is telling that "The procedure entry point could not be located in dynamic link library C:\Program Files\....\.....dll". So basically nothing is working if 14.0.2 EXE is installed in this way.
8. If 14.0.2 EXE is installed on a clean virtual machine (14.0.1 is not pre-installed), obviously the installation startes in full-UI and also our product works as expected after the installation. All of our executables can be started/used without any problems.
9. We compared the installed files (bytes) of the 2 machines (the one with a broken 14.0.2 product and with the working 14.0.2 product): all files are identical, so apparently the installer copies the correct files to the hard drive in both cases. However something is still wrong.

Could you please help us in fixing this? Could you pleaqse tell me what your installer is doing differently when installing an EXE as minor upgrade? Obviously keeping the product codes the same means we should install 14.0.2 as a patch or else we could change the product code to be able to install 14.0.2 as an EXE. However we still would like to know how it´s possible that files of 14.0.2 are all correct but something is wrong with procedure entry points.

Thanks in advance!

Best regards,
Zsolt Kollarits
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Installing an EXE with same product code as minor upgrade

Hello Szolt,

When the "Install MSI as minor upgrade" option is enabled the EXE setup, at install time, will first recache the existing MSI installation database (installed by the old product) to update it to the new MSI installation database and then will simply run a repair operation for the new recached MSI.

Normally if you fulfilled all the patch creation rules you should not encounter such issues. Can you please send your AIPs (project files of old and new product version) to support at advancedinstaller dot com so we can check its settings?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Zsolt Kollarits
Posts: 409
Joined: Fri May 29, 2015 10:36 am

Re: Installing an EXE with same product code as minor upgrade

Hi Daniel,

We managed to understand the problem and reproduce it:
1. Product 14.0.1 contains a file - coming from an external framework - with a specific version number
2. Product 14.0.2 contains the updated (patched) version of that file but its version number is entirely the same
3. Product 14.0.2 requires the updated version of the given file, otherwise product 14.0.2 is not working properly, that´s why the error dialogs come
4. If we install 14.0.2 as a minor upgrade, the old file is not getting replaced, because the version numbers are matching

As far as I understand this behavior is correct from your point of view, minor upgrades simply ignore files with the same version number, right? However the given framework file should be replaced in such a situation.

Best regards,
Zsolt
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Installing an EXE with same product code as minor upgrade

Hello Zsolt,

Please accept my apologies for my delayed reply. We had a release last Thursday and we were a bit busy recently.

The file (from the updated product version setup) should be included in the minor upgrade if it has a newer timestamp than its target file. However, can you please go to "Files and Folders" page (in the newer product version of your installer project), select the related file, from its context menu choose "Properties...", go to "Operations" tab and select the "Always overwrite existing file" option?

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Zsolt Kollarits
Posts: 409
Joined: Fri May 29, 2015 10:36 am

Re: Installing an EXE with same product code as minor upgrade

Hi Daniel,

Your hint was really helpful for us, thanks for the assistance! The "Always overwrite existing file" option worked for us.

Best regards,
Zsolt
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Installing an EXE with same product code as minor upgrade

You're always welcome Zsolt. I'm glad you got this working.

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

Return to “Common Problems”