AquaComm
Posts: 45
Joined: Wed May 06, 2020 3:25 am

Re-Enable NEXT button on return from Custom Action

Tue May 17, 2022 5:07 am

On my custom "Validate Licence" Dialog page I have set the Next button to have two Control Conditions ...
validate.jpg
validate.jpg (31.58KiB)Viewed 1776 times
The condition (MCLICENCEVALIDATED) is set to FALSE prior to the Dialog being displayed and the Next button is displayed as disabled accordingly.

The Validate Licence button also seen in the above image, when clicked executes a Custom Action that calls a function in a DLL which in turn sets the said condition to "TRUE".

Unfortunately, after the Validate Licence function has returned, the Next button is not enabled.

I have also created a Custom Action to refresh the current dialog after calling the Validate Licence function however the Next button remains disabled.

How do I enable the Next button?

AquaComm
Posts: 45
Joined: Wed May 06, 2020 3:25 am

Re: Re-Enable NEXT button on return from Custom Action

Tue May 17, 2022 6:49 am

The problem was that the "Refresh the current dialog" Custom Action also had 'hidden' conditions applied to it. Removed those and it works fine.

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

Re: Re-Enable NEXT button on return from Custom Action

Tue May 17, 2022 8:50 am

Hello,

Thank you for your followup on this!

Glad everything is working as expected now.

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

Return to “Building Installers”