Upgrade an installed build with another build - Advanced Installer Community
SimLoe
Posts: 69
Joined: Thu Mar 12, 2020 11:37 am

Upgrade an installed build with another build

Hi team,

in the past (using our old installer logic) we always have been offering two builds of the same project (one including an SQL Express Setup and one without SQL) and we would like to continue that approach in the future.

I have installed one build (including SQL)(e.g. version 9.0.0.12000) on a VM and then tried to install an update (e.g. version 9.0.0.12005) using the other build. When I try to run the new setup, I receive the following error: Another Version of this product is already installed. Setup cannot be completed.

What can I do to make those two builds compatible for update installations (the only differnce is the presence of the SQL Server express feature)?

Best regards,

Simon
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Upgrade an installed build with another build

Hello Simon,

Most probably, that is not caused by the builds, but by the fact that you are using the 4th field from the ProductVersion (i.e. x.x.x.12000 and x.x.x.12005).

Please have a look over the following forum thread in which I have explained why this happens and how to fix it:

Automatic upgrade old version not working

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
SimLoe
Posts: 69
Joined: Thu Mar 12, 2020 11:37 am

Re: Upgrade an installed build with another build

Hello Catalin,

I already had implemented the upgrade rule "Include maximum version in range" as you suggested here: viewtopic.php?f=2&t=45257
upgrade.PNG
upgrade.PNG (38.81 KiB) Viewed 7173 times
When I try to install a newer version of the "large" setup (including SQL) everything works fine (even though the versions only differ in the 4th part). According to your answer, shouldn't both builds behaving the same way?

However, what I don't understand is the "new Product Code" topic. I am using Azure Devops for building. So when exactly would I have to generate a new product code? Obviously not after every checkin, right?

Best regards,

Simon
supertrio17
Posts: 24
Joined: Mon May 04, 2020 7:06 pm

Re: Upgrade an installed build with another build

Hm, interesting. But can you please try and use only 3 fields. I think that will solve your problem. Please keep us up on your topic
SimLoe
Posts: 69
Joined: Thu Mar 12, 2020 11:37 am

Re: Upgrade an installed build with another build

But I need to use four fields (see the linked thread) in order to be able to install an internal upgrade on our test machines. When I used three fields, I could not upgrade version 9.0.0.12000 to 9.0.0.12005.
SimLoe
Posts: 69
Joined: Thu Mar 12, 2020 11:37 am

Re: Upgrade an installed build with another build

Just to keep you updated: Today, I was able to install the latest small build on a machine with the big build already installed. Maybe just some special versions didn't work together... I will continue to have a look on this issue, but for now, it seems like, the thread can be closed...
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Upgrade an installed build with another build

Hello Simon,

Thank you for your followup on this.

I am glad you got this working.
I will continue to have a look on this issue
Sure, please let me know if you require any assistance and I'll be glad to assist.

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

Return to “Common Problems”