InstallShield 2018 » InstallScript Language Reference
Project • This information applies to InstallScript projects.
The SQLRTGetComponentScriptError2 function supersedes the SQLRTGetComponentScriptError function.
The SQLRTGetComponentScriptError function retrieves the last error while executing a SQL script that is associated with the component.
Note • The SQLRTGetComponentScriptError function uses SQLRT.dll; therefore, it can be called only after SQLRTInitialize2 has already been called. To learn more, see Using the SQL Run-Time Functions in InstallScript and InstallScript MSI Projects.
Syntax
SQLRTGetComponentScriptError( szComponent, szMessage, nvErrorType, nvErrorLine );
Parameters
| Parameter | Description | |||||||||||||||
| szComponent | Specifies the name of the component that is associated with the script. | |||||||||||||||
| szMessage | Specifies the error message that the database server returned. | |||||||||||||||
| nvErrorType | Specifies the type of error. Valid types are: 
 
 
 
 
 | |||||||||||||||
| nvErrorLine | Specifies the line number of the error. | 
Return Values
| Return Value | Description | 
| TRUE | One or more errors occurred. | 
| FALSE | No errors occurred. | 
See Also
| InstallShield 2018 Help LibrarySeptember 2018 | Copyright Information | Flexera |