jaschulz
28th September 2003 00:24 UTC
Reboot Option Questions
I have looked through the docs, but I don't see how I can force the finish page to show the rebootnow and rebootlater buttons. Can someone point me to an example?
Also, I need to show that option at the "finish" of the uninstall also. Is there any way to do that?
Thanks,
JAS
n0On3
28th September 2003 04:07 UTC
As you probably know, there's a reboot flag. And then there's a IfRebootFlag instruction. And you can use to show a "MessageBox MB_OKCANCEL" to prompt and then there's the instruction Reboot. If you specially want the "reboot now" "Reboot later" text in the buttons, DrO is making a nice plugin for this :)
At the end of the sections you will have something like this:
IfRebootFlag "" NoFlag
MessageBox MB_OKCANCEL "want to reboot" IDCANCEL NoFlag
Reboot
NoFlag:
jaschulz
28th September 2003 04:27 UTC
I did see something about the reboot flag, but I do not understand how to set it.
Also because the latest MUI Readme includes:
MUI_FINISHPAGE_TEXT_REBOOT text
Text to display on the finish page when asking for a sytem reboot. Use \r\n for a newline.
MUI_FINISHPAGE_TEXT_REBOOTNOW text
Text to display next to the 'Reboot now' option button.
MUI_FINISHPAGE_TEXT_REBOOTLATER text
Text to display next to the 'Reboot later' option button.
I assumed there must be some obvious way to make those buttons show (i.e. something simpler than a plug-in)
Am I wrong about this?
JAS
n0On3
28th September 2003 07:51 UTC
there's a SetRebootFlag instruction.
And sorry, but I don't know a thing about MUI.
kichik
28th September 2003 11:36 UTC
Unless you define MUI_FINISHPAGE_NOREBOOTSUPPORT the MUI finish page will automatically show a reboot option if the reboot flag is set. The reboot flag is set if you use /REBOOTOK for Rename, Delete, RMDir or SetRebootFlag true.
As for the uninstaller, you can use un.onInstSuccess to show an option to reboot using a message box.
jaschulz
28th September 2003 18:15 UTC
OK. I understand now, and I can see the reboot radio buttons on my finish page. However, I do not seem to be able to set the text for those buttons. This is what I have (in my Pages section):
.
.
.
!insertmacro MUI_PAGE_INSTFILES
!define MUI_PAGE_FINISH_TEXT_REBOOTNOW "Reboot the computer now?"
!define MUI_PAGE_FINISH_TEXT_REBOOTLATER "Reboot the computer later?"
!insertmacro MUI_PAGE_FINISH
.
.
.
But when I run the installer, I do not see the texts I specified.
What am I doing wrong here?
JAS
Joost Verburg
28th September 2003 18:22 UTC
That's because you are using the wrong names.
It should be MUI_FINISHPAGE_TEXT_REBOOTNOW and MUI_FINISHPAGE_TEXT_REBOOTLATER.
jaschulz
28th September 2003 18:35 UTC
OK've got it now.
Just in case anyone else is reading this thread: Kichik note (above) should have referred to un.onUnInstSuccess.
JAS