Return Values of JScript and VBScript Custom Actions

Custom actions written in JScript or Visual Basic, Scripting Edition (VBScript) can call an optional function. These functions must return one of the values shown in the following table.

SymbolicCodeDescription
IDOK1Action completed successfully.
IDCANCEL2Premature termination by user.
IDABORT3Unrecoverable error. Returned if there is an error during parsing or execution of the JScript or VBScript.
IDRETRY4Suspended sequence to be resumed later.
IDIGNORE5Skip remaining actions. Not an error.
5 entries

Article text from the Win32 documentation (opens in a new tab), by Microsoft, under the CC BY 4.0 (opens in a new tab) licence.