InstallShield 2018 » InstallScript Language Reference
The CtrlSetText function sets the text of a single-line edit field, static text field, or button control in a custom dialog. To set the text in multi-line edit fields, call CtrlSetMLEText.
Syntax
CtrlSetText ( szDialogName, nControlID, szText );
Parameters
| Parameter | Description | 
| szDialogName | Specify the name of the dialog that you want to modify. | 
| nControlID | Specify the resource ID of the single-line edit field, static text field, or button control in which text is to be set. | 
| szText | Specify the text to place in the control. Tip • If you want the control to be an HTML control, you can specify [html] at the beginning of the szText value. To learn more, see Using an HTML Control on a Dialog. | 
Return Values
| Return Value | Description | 
| 0 | CtrlSetText successfully set the text in the control. | 
| ISERR_GEN_FAILURE | CtrlSetText was unable to set the text in the control. | 
See Also
| InstallShield 2018 Help LibrarySeptember 2018 | Copyright Information | Flexera |