Reference/IfRebootFlag: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
No edit summary
mNo edit summary
Line 9: Line 9:
Reboot
Reboot
noreboot:</highlight-nsis>
noreboot:</highlight-nsis>
''Command introduced with NSIS v1.70''

Revision as of 20:43, 4 June 2013

IfRebootFlag

jump_if_set [jump_if_not_set]

Checks the reboot flag, and jumps to jump_if_set if the reboot flag is set, otherwise jumps to jump_if_not_set. The reboot flag can be set by Delete and Rename}, or manually with SetRebootFlag.

IfRebootFlag 0 noreboot
MessageBox MB_YESNO "A reboot is required to finish the installation. Do you wish to reboot now?" IDNO noreboot
Reboot
noreboot:

Command introduced with NSIS v1.70