Re-Enable NEXT button on return from Custom Action - Advanced Installer Community
kshreyas
Posts: 1
Joined: Wed Jan 25, 2023 6:26 pm

Re-Enable NEXT button on return from Custom Action

Hi,
On my custom "Prerequisite" Dialog page I have set the Next button to have two Control Conditions ...
PROCEED_INSTALLATION="false" action:disabled
PROCEED_INSTALLATION="true" action:enabled


I have a custom property named PROCEED_INSTALLATION.

The condition (PROCEED_INSTALLATION) is set to FALSE prior to the Dialog being displayed and the Next button is displayed as disabled accordingly.

On clicking a button a Custom Action is executed that calls a function in a DLL which in turn sets the said condition to "TRUE".

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

Could you please help me with that?
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

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

Hello and welcome to our forums,

The reason for that is that the dialog is not refreshed after the execution of your custom action.

That being said, to make this work, please add a "Refresh the current dialog" event on the button that executes your custom action. The action should be scheduled after the custom action that calls the DLL file.

Hope this helps!

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

Return to “Common Problems”