guidogast
Posts: 51
Joined: Thu Sep 05, 2013 10:12 am

Product versions of old and new install while upgrading

Hello,

A colleague of mine is working with Advanced Installer and he ran into a problem. When the user is trying to upgrade our software, we want to display a message: You're upgrading from version: 3.x.x.101 to 3.x.x.105. The question is: how to get the product version of the current installed version of our software?

I hope to hear from you guys soon!

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

Re: Product versions of old and new install while upgrading

Hello Guido,

In order to retrieve the ProductVersion of an already installed package you can use an New Extend Search – > Product Version (identify by Upgrade Code) from the Search page.

Then add in the Upgrade Code field the Upgrade Code of your installation package which can be found in the Product Ids tab from the Product Details page.

Also, you can condition the displaying of that dialog( You're upgrading from version: 3.x.x.101 to 3.x.x.105. ) by using the OLDPRODUCTS property. This property is set only in a package which upgrades another package.

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
guidogast
Posts: 51
Joined: Thu Sep 05, 2013 10:12 am

Re: Product versions of old and new install while upgrading

Dan wrote:Hello Guido,

In order to retrieve the ProductVersion of an already installed package you can use an New Extend Search – > Product Version (identify by Upgrade Code) from the Search page.

Then add in the Upgrade Code field the Upgrade Code of your installation package which can be found in the Product Ids tab from the Product Details page.

Also, you can condition the displaying of that dialog( You're upgrading from version: 3.x.x.101 to 3.x.x.105. ) by using the OLDPRODUCTS property. This property is set only in a package which upgrades another package.

If you have other questions, please let us know.

Best regards,
Dan
Hello Dan,

Thanks for your response. My colleague tested out your reply, but it turns out that the number that we get back from the result property is: 1. Not really convenient, since we want the complete product version. Is there a way of fixing it?

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

Re: Product versions of old and new install while upgrading

Hello Guido,

Please add 1.0 argument in the Minimum field in the Extend Search Properties.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
guidogast
Posts: 51
Joined: Thu Sep 05, 2013 10:12 am

Re: Product versions of old and new install while upgrading

Hello Dan,

This did the trick. Thanks for helping us!

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

Re: Product versions of old and new install while upgrading

You're welcome Guido,

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”