We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Jakob1981
Posts: 46
Joined: Fri Jun 13, 2014 10:52 am

Problem Version Handling (side-by-side installed)

Hello together,

I am facing the following problem:

I have an executable with the following config:

* On each build, the build number is incremented -> so: on each build, a new product code is generated (I can see it in the aip-file)
* The upgrade code stays always the same
* Configuration: Upgrades: Automatically upgrade older product version is checked
(so: side-by-side installation is unchecked)

I swear I tested it multiple times. I generated a version 3.1.0.123, 3.1.0.124, 3.1.0.125 - same upgrade code, different product code - I installed one after another - and the result was that all of them were installed side-by-side.
I swear I saw the changes in the aip file for the product code. And I saw that nothing changed for the upgrade code or any other setting. I do absolutly not understand how this can be possible. Why don't the versions upgrade each other, so that only one version is installed at the same time?

Please, any help will be appreciated.

Thanks

Jakob
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Problem Version Handling (side-by-side installed)

Hi Jakob,

Since you are using the forth field for the Product Version you need to make sure that a new ProductCode is generated (by default it isn't).

If a new ProductCode is generated, you need to make sure that a different installation folder is selected. This is happening because when authoring side by side installs of different versions of an application, it is recommended that some rules should be used. The install locations, registry entries, shortcuts etc. should differ from one version to another. If they are not different, the present items will be overwritten when a new version is installed. Also, they will be removed when a version of the application is uninstalled even if the other versions still uses them.

Please take a look on the Upgrades article which may be useful to you.

If this is not you case, please send us two consecutive .AIP(project file) to support at advancedinstaller dot com so we can investigate this.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Jakob1981
Posts: 46
Joined: Fri Jun 13, 2014 10:52 am

Re: Problem Version Handling (side-by-side installed)

Hello Dan,

thanks for your fast response.

Like I said, the different product code was for sure generated. Is there any way to detect the product code of the versions on the installed machine so that I can double check?

Different Folders are used automatically. There is a base folder which contains the most recent exe and there are additional folders for all versions which contain user specific settings.
The registry keys are reused, but that's an important requirement for us.

I already took a look at the upgrade article but I really dont understand what could happen, so that versions with same upgrade code and different product code are installed side by side. It seems almost theoretically impossible to me.

Maybe it would be helpful to explain my setup?
I have a Microsoft Visual Studio project which uses Advanced Installer. There is a file called AssemblyInfo.cs where I change the current version before every build. Then I call msbuild.exe on cmdline and the exe file is generated with the version found in AssemblyInfos.cs. Afterwards I check the aip file and I always see that the product code changed during the build process.

I did this various times and in the end, like I described, I had various exe files with different product codes shown in the aip file and with different version numbers. I installed them on my machine and they were all installed side-by-side... I really don't get it

Thanks for help!

Jakob
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Problem Version Handling (side-by-side installed)

Hi Jakob,

I'm not sure why this is happening.

In order to have a better view about this, can you please send us the .AIP (project file) of an older version (e.g. version 3.1.0.123) and a .AIP (project file) of a higher version (e.g. version 3.1.0.124) and a verbose log when the installation of the upgraded version is performed to support at advancedinstaller dot com so we can investigate this? If it contains confidential information you can send us a small test project which reproduce this behavior.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Jakob1981
Posts: 46
Joined: Fri Jun 13, 2014 10:52 am

Re: Problem Version Handling (side-by-side installed)

Hello Dan,

I got the answer. It's because I changed the fourth digest (0.0.0.X) - when changing the third digest the upgrade mechanism works as expected. (0.0.X.0) Last week I was only changing the second digest and I did not except any problems when changing the fourth digest instead. Also Microsoft Visual Studio does not show any warning when changing the fourth digest, but I noticed while debugging that AI does.
Sorry for any inconvenience.

Greetings
Dan
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Problem Version Handling (side-by-side installed)

Hi Jacob,

Indeed, Windows Installer uses only the first three fields of the product version. If you include a fourth field in your product version, the installer ignores the fourth field.

If you have other questions, please let us know.

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

Return to “Building Installers”