InstallShield 2019 » InstallScript Language Reference
Project • This information applies to the following project types:
• | InstallScript |
• | InstallScript MSI |
The SdCustomerInformation function displays a dialog that enables the end user to specify the user name and company name for the product being installed. The dialog may also include radio buttons that let the end user specify whether the product should be installed for all users or only the current user.
You can specify default values for these fields by specifying the appropriate parameters. If you specify a null string (""), the function uses the appropriate script variable.
The Next button becomes enabled only when data exists in both edit fields. The end user cannot leave any field blank.
Syntax
SdCustomerInformation ( szTitle, svName, svCompany, bvAllUsers );
Parameters
Parameter |
Description |
|||||||||||||||||||||
szTitle |
Specifies the title of the dialog. To display the default title (“Customer Information”), pass a null string ("") in this parameter. |
|||||||||||||||||||||
svName |
Specifies the default value for the Name edit field when the function is called. If a null string ("") is specified, the default value is the current value of the IFX_PRODUCT_REGISTEREDOWNER variable. For an InstallScript project, this variable is read from the registry in a first-time installation or the corresponding text substitution in maintenance mode. For an InstallScript MSI project, the default value of the variable is always read from the Windows Installer property USERNAME. The function returns the value that the end user specified in this parameter. In an InstallScript installation, the function also sets the value of IFX_PRODUCT_REGISTEREDOWNER to the value that the end user specified. In an InstallScript MSI installation, the function automatically updates the Windows Installer property USERNAME. |
|||||||||||||||||||||
svCompany |
Specifies the default value for the Company edit field when the function is called. If a null string ("") is specified, the default value is the current value of the IFX_PRODUCT_REGISTEREDCOMPANY variable. For an InstallScript project, this variable is read from the registry in a first-time installation or the corresponding text substitution in maintenance mode. For an InstallScript MSI project, the default value of the variable is always read from the Windows Installer property COMPANYNAME. The function returns the value that the end user specified in this parameter. In an InstallScript installation, the function also sets the value of IFX_PRODUCT_REGISTEREDCOMPANY to the value that the end user specified. In an InstallScript MSI installation, the function automatically updates the Windows Installer property COMPANYNAME. |
|||||||||||||||||||||
bvAllUsers |
Returns which option the end user selected. After the function returns, bvAllUsers is set to one of the following values:
If the end user selects this option in an InstallScript installation, the function sets the system variable ALLUSERS to a non-zero value. If the end user selects this option in an InstallScript MSI installation, the function sets the ALLUSERS property to a value of 2.
If the end user selects this option in an InstallScript installation, the function sets the ALLUSERS variable to FALSE. The default option is not based on the current value of the bvAllUsers parameter, but on the ALLUSERS Windows Installer property in an InstallScript MSI installation, or on the ALLUSERS system variable in an InstallScript installation:
One or both of the radio buttons can be disabled or hidden by updating script variables as follows:
|
Return Values
Return Value |
Description |
NEXT (1) |
Indicates that the Next button was clicked. |
BACK (12) |
Indicates that the Back button was clicked. |
Additional Information
To view an example of this or other dialogs for your installation, use the Dialog Sampler. In InstallShield, on the Tools menu, point to InstallScript, then click Standard Dialog Sampler or Skinned Dialog Sampler.
See Also
InstallShield 2019 Help LibraryApril 2019 |
Copyright Information | Flexera |