Disable
The Disable function deactivates the user interface object or setup feature specified by the parameter nConstant.
If your script calls the Disable function to disable the Next or Back button, that button is disabled in all dialogs displayed after that function call. To re-enable the Next or Back button, you must call Enable with the corresponding constant.
Syntax
Disable ( nConstant );
Parameters
Parameter |
Description |
||||||||||||||||||||||||||||||||||||
nConstant |
Specifies the user interface object or operational feature to disable. Pass one of the following predefined constants in this parameter:
Note:DIALOGCACHE has no effect on dialogs that do not have a Next or Back button.
|
||||||||||||||||||||||||||||||||||||
nConstant (cont.) |
Note that logging is enabled automatically by default. If you need to disable logging, it is recommended that you do so by calling Disable with the LOGGING constant immediately before performing operations that should not be logged for uninstallation. Then you can re-enable logging by calling Enable with the LOGGING constant. For more information about logging, see InstallScript Functions that Are Logged for Uninstallation. Tip:To prevent changes that are made by a component from being undone during uninstallation, select No for the Uninstall setting of a component in an InstallScript project, or select Yes for the Permanent setting of a component in an InstallScript MSI project.
Note:Calling Disable with the NEXTBUTTON constant has no effect on the SdCustomerInformation, SdCustomerInformationEx, SdRegisterUser, or SdRegisterUserEx dialogs since they enable and disable the Next button internally.
When the batch method is disabled, files are registered immediately when copied with XCopyFile and the SELFREGISTER constant. If the batch method is enabled, registration is postponed until data transfer takes place. |
||||||||||||||||||||||||||||||||||||
nConstant (cont.) |
Project:The USE_LOADED_SKIN constant is applicable to InstallScript projects.
|
Return Values
Return Value |
Description |
0 |
Indicates that the function successfully disabled the user interface object or setup feature specified by the parameter nConstant. |
< 0 |
Indicates that the function was unable to disable the user interface object or setup feature specified by the parameter nConstant. |