Archive: Question about Custom Page in a Modern UI


Question about Custom Page in a Modern UI
Hi,

I've got a CUSTOMPAGE in a MUI installation. I would like to disable the NEXT button when page is displayed first (activating it later if some conditions are fullfilled).

In the InstallOptions, I only find settings :
- CancelEnabled
- BackEnabled

But no NextEnabled.

Is it a way to do what I want ?

Thx

Geoffrey


You can disable the Next button using in the page's Show function:
GetDlgItem $R0 $HWNDPARENT 1
EnableWindow $R0 0

Use Notify flag on controls to check user input.

-Stu


Thx Afrow_UK, it works perfectly.

I've another question now. I'm developping a CUSTOM MUI page that detect if a specific version of JVM (java virtual machine) is installed on the computer.

I'ld like to do the following thing :
- if yes, nothing special happen and the user can continue the installation process of the product
- if not, i change the text of the "Next" button to "Install JVM 1.X" and I would like to launch JVM installation by clicking on the next button.

Is it possible to have two different action fired by clicking on the next button, depending on the case ?

Geoffrey