
- fixed bug #989690 - the installer now denies reboots while running - the Reboot instruction no longer returns or sets the error flag - added .onRebootFailed which is called when Reboot fails - installer should now always clean-up when rebooting git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3729 212acab6-be3b-0410-9dea-997c60f758d6
18 lines
596 B
Text
18 lines
596 B
Text
\S{rebootinst} Reboot Instructions
|
|
|
|
\S2{reboot} Reboot
|
|
|
|
Reboots the computer. Be careful with this one. If it fails, \R{onrebootfailed}{.onRebootFailed} is called. In any case, this instruction never returns, just like \R{quit}{Quit}.
|
|
|
|
\c MessageBox MB_YESNO|MB_ICONQUESTION "Do you wish to reboot the system?" IDNO +2
|
|
\c Reboot
|
|
|
|
\S2{setrebootflag} SetRebootFlag
|
|
|
|
\c true|false
|
|
|
|
Sets the reboot flag to either true or false. The flag's value can be read using \R{ifrebootflag}{IfRebootFlag}.
|
|
|
|
\c SetRebootFlag true
|
|
\c IfRebootFlag 0 +2
|
|
\c MessageBox MB_OK "this message box will always show"
|