Archive: Finish page custom control background


Finish page custom control background
Hi All!
I try to add 'Launch program' check box to Finish page. I do it by adding checkbox definition to ioSpecial.ini in Finish page PRE event handler. The problem I have: background color of checkbox is gray and it differs from background color of page. How can I solve this?
My code is:

;page definition
!define MUI_PAGE_CUSTOMFUNCTION_PRE Finish_PRE
!insertmacro MUI_PAGE_FINISH
...
Function Finish_PRE
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Settings" "NumFields" "10"
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 3" "Bottom" "70"
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 4" "Type" "CheckBox"
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 4" "Left" "120"
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 4" "Right" "315"
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 4" "Top" "80"
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 4" "Bottom" "-1"
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 4" "Text" "Test checkbox"
FunctionEnd

I tried to set MUI_BGCOLOR definition but it looked like it influenced page background color only. Background of checkbox created by me were still gray. Please, tell me where I'm wrong? Maybe there is a different approach to reach the same thing I want.

Thanks,
Sergey


Why not use the standard Modern UI setting for a launch program checkbox?


I have the same question and Joost's answer doesn't match: What if I want to add another checkbox? How can I make the background white?


In the show function, use SetCtlColors to set the background color. Note that:

In the Show function of Welcome page and the Finish page, $MUI_HWND contains the HWND of the inner dialog