Reference/IfRebootFlag: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
(Created page with "=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 ca...")
 
No edit summary
Line 6: Line 6:


<highlight-nsis>IfRebootFlag 0 noreboot
<highlight-nsis>IfRebootFlag 0 noreboot
  MessageBox MB_YESNO "A reboot is required to finish the installation. Do you wish to reboot now?" IDNO noreboot
MessageBox MB_YESNO "A reboot is required to finish the installation. Do you wish to reboot now?" IDNO noreboot
    Reboot
Reboot
noreboot:</highlight-nsis>
noreboot:</highlight-nsis>

Revision as of 19:00, 27 November 2011

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: