Skip to content
⌘ NSIS Forum Archive

silent - reboot

3 posts

coco_vc#

silent - reboot

Hi all,

I am making my installer/uninstaller silent now. Problem is that even though I specifically set the


SetRebootFlag true
the installer after finishing, doesn't reboot.

So, do I have in silent case to specifically ask for a reboot using the reboot command, smth like:


Section -Final ; for rebooting in silent mode
IfSilent 0 no-silent_RebootInSilentMode
IfRebootFlag 0 noreboot_RebootInSilentMode
FileWrite $FileHandle "success => RebootInSilentMode\n"
; close the logging file
FileClose $FileHandle
; reboot
Reboot ; reboot flag set, so force the reboot
noreboot_RebootInSilentMode:
no-silent_RebootInSilentMode:
SectionEnd
or that normally shouldn't be necesary and just using the "SetRebootFlag true" should do?

Thx,
Viv
kichik#
SetRebootFlag only sets the reboot flag, it doesn't reboot. You must call Reboot yourself. You usually do that according to the reboot flag.