Archive: silent - reboot


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

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


OK, so basically the "Section -Final" from above would be the way to go.

Thx,
Viv