17.6.5 Adding the coding for error handling and setting a return code
You need to add error handling to support windows output if an error occurs. Determine whether to continue or abort the installation if an error occurs, and code the error handling according to the determination.
Also, you need to add the coding for setting a return code to indicate whether or not the installation normally terminated. This coding is necessary for checking errors at the managing server. The return code is a two-digit value displayed as the ninth and tenth (from the left) digits of the maintenance code in the Details dialog box.
The following figure shows an example of coding for error handling and setting a return code.
|
|