Archive: MUI Finish Page: Reboot later default?


MUI Finish Page: Reboot later default?
Using the Modern UI, I would like the default option for the Finish page to be "Reboot later".

By merit of using a few delete commands with the /REBOOTOK option, the MUI_FINISHPAGE_NOREBOOTSUPPORT is obviously of no use to me. Optionally, I could omit the Finish page and skip the reboot question altogether, but it's nice to at least ask. And I can apparently change the reboot option labels if I'd like.

But is there some undocumented !define to give me a default to "Later" instead of "Now"?

Thanks in advance,
- m


Since the Finish page is only a custom page using InstallOptions, if you define a custom pre page, it will call that after doing an InstallOptions::initDialog. Then you can just set the custom features you want on the page.


!define MUI_PAGE_CUSTOMFUNCTION_PRE FinishPre
!insertmacro MUI_PAGE_FINISH
...
Function FinishPre
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field x" "State" "0"
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field y" "State" "1"

I'm not 100% sure on Field x and y, but I think they can be between 4-6. Hope that helps.
FunctionEnd

Thank you, I will check out this alternative.

- m