Archive: Dynamically show/hide finish-run checkbox


Dynamically show/hide finish-run checkbox
Hi,

Is there any simple way to show/hide finish run checkbox except for doing it with call to EnableWindows?


See the code snippet on this page:
http://forums.winamp.com/showthread....hreadid=248144

That changes the font size of the header text on the Welcome and Finish pages, which are control ID 1201 of the InstallOptions page (or [Field 2] in the ioSpecial.ini file). The check box will be control ID 120#.

-Stu


Thanks, Stu. As far as I understand, you mention the same ShowWindow (I've mispelled it in the first post). Well, I've implemented this per your advise:


<skip>
!undef MUI_PAGE_CUSTOMFUNCTION_SHOW
!define MUI_PAGE_CUSTOMFUNCTION_SHOW FinishPageShow
!insertmacro MUI_PAGE_FINISH

Function FinishPageShow
${if} ${MODE} == "WITHOUT_FINISH_RUN"
GetDlgItem $DlgItem $MUI_HWND 1203 ; run checkbox, see MUI_FINISHPAGE_RUN_TEXT macro
ShowWindow $DlgItem SW_HIDE
${endif}
FunctionEnd

ShowWindow $DlgItem SW_HIDE
...should be...
ShowWindow $DlgItem ${SW_HIDE}

Should still work otherwise though because it would probably take the "SW_HID" string value as 0 (which is what ${SW_HIDE} is). You were lucky there :)

-Stu


Yes, quite funny. =)