Handling Errors

Even the most well-designed installers can run into situations that generate errors. For instance, connection problems might prevent an HTTP download from succeeding, or an INI file you need to read from may have been deleted by a careless user.

Setup Factory gives you two ways to respond to such errors:

Built-in error handling

You can use the standard error handling features built into each action, which you can configure using the On Error tab of the action's properties dialog.

Custom error handling

You can use your own combination of actions to respond to the error. These actions could be contained in an IF/END IF block that checks built-in variables like %LastErrorNum% to determine whether an error occurred. Or, the actions could be assigned a label and called directly using the Continue at label setting on the On Error tab.

 

See Also: Alphabetical List of Actions, Categorical List of Actions