Archive: MUI_PAGE_FINISH Not Prompting for Reboot


MUI_PAGE_FINISH Not Prompting for Reboot
<DISCLAIMER>NSIS nOOb -- do be gentle!</DISCLAIMER>

I have created a simple 3rd party installer script that includes the 'SetRebootFlag true' directive at the end of one of the sections (see attached example). Whenever I run the installer with this section enabled, I am never prompted to reboot, nor is the Finish Page displayed. What have I missed?


This minimal example works as expected, try to start from here,

OutFile "Test.exe"
InstallDir "$PROGRAMFILES\Test"

!include "mui.nsh"

!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!define MUI_FINISHPAGE_LINK "Visit NSIS Home Page"
!define MUI_FINISHPAGE_LINK_LOCATION "http://nsis.sf.net"
!insertmacro MUI_PAGE_FINISH

!insertmacro MUI_LANGUAGE "English"

Section
MessageBox MB_YESNO "Set up reboot flag??" IDNO end
SetRebootFlag true

end:
SectionEnd