Disable a control on a custom Page
This may seem very trivial, but I have searched the forum and cannot see how this is done..
I have a custom form with a parent checkbox and a child checkbox.
I want to have it so if ther parent is ticked, the child checkboxes will be disabled, and if it's unticked then they will be enabled.
I have used the NOTIFY flag on the parent checkbox, and have code for checking that it is ticked and then disabling the child checkbox.
What I am failing with is just going back to that same custom page with the updated enabled/disabled child checkbox.
If I have this:
!insertmacro MUI_INSTALLOPTIONS_READ $R3 "GeneralDetails.ini" "Settings" "State"
${if} $R3 == "15"
${if} $R5 == "1" ; parent checkbox enabled
!insertmacro MUI_INSTALLOPTIONS_WRITE "GeneralDetails.ini" "Field 9" "Flags" "DISABLED" ; disable child
${Else}
!insertmacro MUI_INSTALLOPTIONS_WRITE "GeneralDetails.ini" "Field 9" "Flags" "" ; enable child
${EndIf}
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "GeneralDetails.ini"
${EndIf}
Am I missing an Abort command or a different MUI_INSTALLOPTIONS macro?
Thanks in advance!