Archive: Reboot page with radio buttons


Reboot page with radio buttons
I'm trying to do what was given as an example in the modernui guide
http://nsis.sourceforge.net/Docs/Mod...es/screen2.png

This is what I'm using, which is obviously lacking something as you can see in the attached picture


!define MUI_FINISHPAGE_NOAUTOCLOSE
!define MUI_FINISHPAGE_TITLE "Installation Complete"
!define MUI_FINISHPAGE_TEXT "You probably want to write these passwords down and change them \
after the install is finished. \r\nYour MySQL root password is: cacti \r\nYour Cacti password \
is: cactipw \r\n\r\nIt's strongly suggested you restart the computer to finalize settings\r\n \
Do you want to restart?"
!define MUI_FINISHPAGE_TEXT_REBOOTNOW "Reboot now"
!define MUI_FINISHPAGE_TEXT_REBOOTLATER "I want to manually reboot later"


I'm also currently using the following, which of course works, but I'd rather use something like the same image from the guide above.

Function .onInstSuccess
MessageBox MB_YESNO|MB_ICONQUESTION "It's strongly suggested you restart the \
computer to finalize settings.$\nDo you want to restart?" IDNO +2
Reboot
FunctionEnd

Your reboot flag must not be set. If you really want to pretend that a reboot is needed, use

SetRebootFlag true

This will make the radio buttons appear on the finish page.