Skip to content
⌘ NSIS Forum Archive

If SetRebootFlag true, No MUI_FINISHPAGE?

4 posts

hawkmaster#

If SetRebootFlag true, No MUI_FINISHPAGE?

Hello,

I have this MUI_Finishpage in my script

; Finish page
!define MUI_FINISHPAGE_NOAUTOCLOSE
!define MUI_FINISHPAGE_LINK "http://www.test.org"
!define MUI_FINISHPAGE_LINK_LOCATION "http://www.testorg"
!define MUI_FINISHPAGE_TITLE_3LINES
!define MUI_FINISHPAGE_RUN
!define MUI_FINISHPAGE_RUN_FUNCTION LaunchTicket
!define MUI_FINISHPAGE_RUN_NOTCHECKED
!define MUI_FINISHPAGE_RUN_TEXT "Starting"
!define MUI_FINISHPAGE_SHOWREADME "readme.txt"

!define MUI_FINISHPAGE_TEXT_REBOOT "The setup needs to reboot"
!define MUI_FINISHPAGE_TEXT_REBOOTNOW "Reboot TT now"
!define MUI_FINISHPAGE_TEXT_REBOOTLATER "Reboot TO later"

!insertmacro MUI_PAGE_FINISH

In a section I have;
SetRebootFlag true

After installation the Reboot screen is shown but not the MUI_FINISHPAGE. No checkboxes
If I comment out the SetRebootFlag then the finish page is shown fine.

What is the problem?
how can I combine both?

regards
hawk
hawkmaster#
Originally Posted by MSG View Post
The reboot screen IS the finish page. That's how MUI1/MUI2 is designed.
hmm, that is a little bit confusing.
That means: As soon as you add the Rebootflag = true
you will never see the other Finish Page options?

!define MUI_FINISHPAGE_NOAUTOCLOSE
!define MUI_FINISHPAGE_LINK "http://www.test.org"
!define MUI_FINISHPAGE_LINK_LOCATION "http://www.testorg"
!define MUI_FINISHPAGE_TITLE_3LINES
!define MUI_FINISHPAGE_RUN
!define MUI_FINISHPAGE_RUN_FUNCTION LaunchTicket
!define MUI_FINISHPAGE_RUN_NOTCHECKED
!define MUI_FINISHPAGE_RUN_TEXT "Starting"
!define MUI_FINISHPAGE_SHOWREADME "readme.txt"

But how can you show both?
Or is it better to make an own Reboot MsgBox at the end?
MSG#
The run checkbox is not rendered because the installation is not finished - in general, the application cannot be expected to run properly. As for the URL not being shown, I guess that the reboot layout doesn't take such things into account. You can either create your own custom finish page with reboot functionality, or edit the existing MUI finish/reboot page.