Skip to content
⌘ NSIS Forum Archive

reboot on installation end

3 posts

mancini#

reboot on installation end

is it posible to give a reboot comand from within a nsis script ?

if so how do i ask for reboot on Inst Success ?


MessageBox MB_YESNO|MB_ICONQUESTION "For the program to work you must reboot\nReboot now ?" IDYES NoAbort
Abort
NoAbort:
this is as much as i figured till now
kichik#
The reboot command is Reboot 😉

Skip it using the message box if the user clicked no.

If you're using the MUI you can also show a finish page and have the MUI ask and reboot for you when the reboot flag is set.