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.
| SdCustomerInformation ( szTitle, svName, svCompany, 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. 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:
|
| 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
SdCustomerInformation Example
SdCustomerInformationEx