jdixon
Posts: 18
Joined: Sat Jan 04, 2014 8:50 pm

Blocking upgrades if previous version isn't new enough

Mon Jan 21, 2019 9:59 pm

I found the minimum version number on the upgrade tabs but that only makes it switch to a new install. How can I detect if they contain version 3.2.xxx and allow an upgrade and if they have lower than 3.2.xxx then it alerts them and blocks the install? If they don't have any version installed then it would allow a new install

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

Re: Blocking upgrades if previous version isn't new enough

Wed Jan 23, 2019 2:56 pm

Hello,

You can achieve what you want by following these steps:

- please go to "Search" page and create an extended search as it follows: right click --> "New Extended Search" --> "Product Version (identify by Upgrade Code)"

- in the "Upgrade Code:" field, insert the upgrade code of your setup.

- under the "Required Versions" section, in the "Minimum:" field, please insert the minimum version.

- now please go to "Launch Conditions" page --> "Custom" tab and create a custom launch condition as it follows:

Condition: your search name (by default, the name of the search is "RESULT_PROPERTY", "RESULT_PROPERTY_1", etc.)
Description: the message you want to show to your users

Hope this helps.

All the best,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

jdixon
Posts: 18
Joined: Sat Jan 04, 2014 8:50 pm

Re: Blocking upgrades if previous version isn't new enough

Wed Jan 23, 2019 9:42 pm

This appears to block new installs

jdixon
Posts: 18
Joined: Sat Jan 04, 2014 8:50 pm

Re: Blocking upgrades if previous version isn't new enough

Wed Jan 23, 2019 9:56 pm

I changed the condition to "(NOT OLDPRODUCTS) OR (CPUPGRADE_CODE)" to resolve the issue. Thank you!!

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

Re: Blocking upgrades if previous version isn't new enough

Tue Jan 29, 2019 10:21 am

You are always welcome.

Glad I could help.

All the best,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

bdhobbs
Posts: 15
Joined: Fri Apr 29, 2022 4:24 pm

Re: Blocking upgrades if previous version isn't new enough

Mon May 02, 2022 7:20 pm

Hello,

I have a quick question related to this solution. Does the "Upgrade Code" field in the Extended Search work with the [|UpgradeCode] alias? I couldn't get it to work with it, but I don't know if it was something I was doing wrong or if this was by-design.

Thanks,
Bryan

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

Re: Blocking upgrades if previous version isn't new enough

Tue May 03, 2022 8:39 am

Hello Bryan and welcome to our forums,

Unfortunately, that field is not of "formatted"/"pseudo-formatted" type, so it does not work.

Fortunately, there is no need for that to work because the UpgradeCode stays the same between multiple versions of your product, so it does not really need to be "automated".

Please let me know if you have any other questions and I will gladly assist.

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

bdhobbs
Posts: 15
Joined: Fri Apr 29, 2022 4:24 pm

Re: Blocking upgrades if previous version isn't new enough

Tue May 03, 2022 3:45 pm

Catalin,

I understand. Thanks for the timely response.

Cheers,
Bryan

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

Re: Blocking upgrades if previous version isn't new enough

Tue May 03, 2022 4:19 pm

You are always welcome, Bryan!

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

Return to “Common Problems”