InstallShield 11 » InstallScript Language Reference
The SdCustomerInformationEx function displays a dialog that allows the end user to enter a name, company name, and serial number, and to indicate 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 all three edit fields. The end user cannot leave any field blank.

The SdCustomerInformationEx function does not verify the serial number. Refer to the InstallShield Tutorial to learn how to add code that verifies the serial number.
| SdCustomerInformationEx ( szTitle, svName, svCompany, svSerial, bvAllUsers ); |
| 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. SdCustomerInformationEx 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 USERNAME property. 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. SdCustomerInformationEx 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 COMPANYNAME property. 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. | ||||
| svSerial | Returns the serial number entered by the end user. You can use this information and write it to a file or display it in a confirmation dialog. 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_REGISTEREDSERIALNUM. | ||||
| bvAllUsers | Returns which option the user selected. After SdCustomerInformationEx returns, bvAllUsers will be set to one of the following values:
|
| Return Value | Description |
|---|---|
| NEXT (1) | Indicates that the Next button was clicked. |
| BACK (12) | Indicates that the Back button was clicked. |
if ( ALLUSERS ) then
TARGETDIR = PROGRAMFILES ^ IFX_COMPANY_NAME ^ IFX_PRODUCT_NAME;
else
TARGETDIR = FOLDER_APPDATA ^ IFX_COMPANY_NAME ^ IFX_PRODUCT_NAME;
endif;See Also
SdCustomerInformationEx Example
SdCustomerInformation