Example

SdCustomerInformation

InstallShield 11 » InstallScript Language Reference

The SdCustomerInformation function displays a dialog that allows the end user to enter a name and company name, and to specify whether the installed application should be available for only the current user or for all users of the target machine.

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 box. To display the default title (“Customer Information”), pass a null string ("") in this parameter.
svName Returns the name entered by the user. SdCustomerInformation displays the initial value of this parameter for editing by the user. If both svName and svCompany are null strings, the user name found in the target system's registry is displayed for editing. In an InstallScript MSI installation, the information that the end user enters in this field is used to set the value of the Windows Installer property USERNAME. In an InstallScript installation, the information that the end user enters in this field is used to set the value of the system variable IFX_PRODUCT_REGISTEREDOWNER.
svCompany Returns the company name entered by the user. SdCustomerInformation displays the initial value of this parameter for editing by the user. If both svName and svCompany are null strings, the company name found in the target system's registry is displayed for editing. In an InstallScript MSI installation, the information that the end user enters in this field is used to set the value of the Windows Installer property COMPANYNAME. In an InstallScript installation, the information that the end user enters in this field is used to set the value of the system variable IFX_PRODUCT_REGISTEREDCOMPANY.
bvAllUsers Returns which option the user selected. After SdCustomerInformation returns, bvAllUsers will be set to one of the following values:
TRUE Anyone who uses this computer [all users]” option is selected by default.
FALSE “Only for me [user name]” option is selected by default.
The default radio button selection is based 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. If the ALLUSERS property is 2 or the ALLUSERS system variable is non-zero, the "Anyone who uses this computer [all users]" option button is selected by default. If the ALLUSERS property is 1 or the ALLUSERS system variable is FALSE, the "Only for me [<user name>]" option button is selected by default.

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

See Also