Archive: Hint: "Reboot later" as default


Hint: "Reboot later" as default
I just have a script which makes changes which are functional after reboot - but reboot is not mandatory.

i search forum but did not found any hint to change default setting for the finish page

it was easy to change the default:

i copied "MUI.nsh" to "MUI1.nsh":
(found in ${NSISDIR}\Include )

!include "${NSISDIR}\Contrib\Modern UI\System1.nsh"

And "System.nsh" was copied to "System1.nsh" with this little change:

Line 1450:

!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 4" "State" "1"

changed to

!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 5" "State" "1"

Any NSI based on this idea needs only this:

!include "MUI1.nsh"
(instead: !include "MUI.nsh")


Or quite simple - direct link in NSI:
!include "${NSISDIR}\Contrib\Modern UI\System1.nsh"
(instead: !include "MUI1.nsh")


Note:
All copied & modified NSH must be are same folder than the original.

Version: nsis2 final (no CVS).

HTH


Why not make it work with a define and submit a patch to be included in 2.01 or 2.02?