I am using MUI2 and InstallOptions with .ini files for UI design. I want to Enable/Disable controls and I have tried two ways:
- Using INSTALLOPTIONS_WRITE InstallOption's macro I cant enable/diable the control (?):
!insertmacro INSTALLOPTIONS_WRITE "MyCustomPage.ini" "Field 1" "Flags" "DISABLE" - Using EnableWindow I can enable/diable controls but the controls dont keep the state. I mean if I click Next button and then back to my custom dialog, the state of the control is the original state (enable or disabled as defined in the .ini file):
!macro ENABLE_FIELD dialog field !insertmacro INSTALLOPTIONS_READ $0 "${dialog}" "${field}" "HWND" EnableWindow $0 1 !macroend
Is there any way to achieve this? Am I using wrong the macro or/and EnableWindow?
Thank you,
J