Reference/IfErrors: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
(Created page with "=IfErrors= jumpto_iferror [jumpto_ifnoerror] Checks and clears the error flag, and if it is set, it will goto jumpto_iferror, otherwise it will goto jumpto_ifnoerror. The erro...")
 
mNo edit summary
 
Line 9: Line 9:
IfErrors 0 +2
IfErrors 0 +2
Call ErrorHandler</highlight-nsis>
Call ErrorHandler</highlight-nsis>
''Command introduced with NSIS v1.2g''

Latest revision as of 20:19, 4 June 2013

IfErrors

jumpto_iferror [jumpto_ifnoerror]

Checks and clears the error flag, and if it is set, it will goto jumpto_iferror, otherwise it will goto jumpto_ifnoerror. The error flag is set by other instructions when a recoverable error (such as trying to delete a file that is in use) occurs.

ClearErrors
File file.dat
IfErrors 0 +2
Call ErrorHandler

Command introduced with NSIS v1.2g