InstallShield 2015 » InstallScript Language Reference
The Enable function activates the user interface object or setup feature specified by the parameter nConstant.
By default, an installation runs without a background. To enable window mode, you must call Enable with the BACKGROUND constant, and then again with DEFWINDOWMODE or FULLWINDOWMODE. These constants are not supported for use in Basic MSI installations.
Note: 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
Enable ( nConstant );
Parameters
Parameter |
Description |
|||||||||||||||||||||||||||||||||||||||
nConstant |
Specifies the user interface object or operational feature you want to enable. 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.
Note: Calling Enable with the BACKBUTTON 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 enabled the user interface object or setup feature specified by the parameter nConstant. |
< 0 |
Indicates that the function was unable to enable the user interface object or setup feature specified by the parameter nConstant. |
See Also
InstallShield 2015 Help LibraryJune 2015 |
Copyright Information | Contact Us |