Refreshing MUI InstallOptions page after NOTIFY control used
Heres my situation: I have a custom InstallOptions page with NOTIFY controls, which execute correctly when clicked or manipulated in the compiled installer, but the page doesnt refresh! I have to press "back" then "next" to see the changes that were made.
Heres my custom page code:
Function ShowFileOptions
${If} $ShowLiscense = 0
!insertmacro MUI_INSTALLOPTIONS_WRITE "FileOptions.ini" "Settings" "NextButtonText" "Finish"
${Else}
!insertmacro MUI_INSTALLOPTIONS_WRITE "FileOptions.ini" "Settings" "NextButtonText" "Continue >"
${EndIf}
!insertmacro MUI_HEADER_TEXT "$(TEXT_IO_TITLE)" "$(TEXT_IO_SUBTITLE)"
!insertmacro MUI_INSTALLOPTIONS_INITDIALOG "FileOptions.ini"
Pop $HWND
!insertmacro MUI_INSTALLOPTIONS_SHOW
FunctionEnd
Function LeaveFileOptions
!insertmacro MUI_INSTALLOPTIONS_READ $R0 "FileOptions.ini" "Settings" "State"
StrCmp $R0 0 Done
StrCmp $R0 7 AddBtn
StrCmp $R0 10 EditBtn
Abort
AddBtn:
!insertmacro MUI_INSTALLOPTIONS_READ $R1 "FileOptions.ini" "Field 3" "State"
!insertmacro SMIS_APPEND "$R1" "FileOptions.ini" "Field 5"
Abort
EditBtn:
!insertmacro MUI_INSTALLOPTIONS_WRITE "FileOptions.ini" "Field 6" "Flags" "DISABLED"
Abort
Done:
FunctionEnd