Old 25th August 2005, 21:20   #1
Junior Member
Join Date: Aug 2005
Posts: 4
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
Markleford is offline   Reply With Quote
Old 25th August 2005, 23:13   #2
Senior Member
Join Date: Jun 2005
Posts: 211
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.

!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.
goldy1064 is offline   Reply With Quote
Old 26th August 2005, 15:20   #3
Junior Member
Join Date: Aug 2005
Posts: 4
Thank you, I will check out this alternative.

- m
Markleford is offline   Reply With Quote
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump