InstallShield 2015 » InstallScript Project Tutorial
The InstallScript language includes many predefined dialogs that you can display in your installation’s user interface.
To replace the default user information dialog with one that also prompts the user for a serial number, you can replace the SdRegisterUser function with a call to SdRegisterUserEx:
1. | In the InstallScript view, select OnFirstUIBefore from the Functions node. |
2. | Declare the string script variable szSerial by adding the following to the declarations before begin in the OnFirstUIBefore() function: |
string szSerial;
3. | Delete the lines containing the call to SdCustomerInformation: |
Dlg_SdRegisterUser:
szMsg = "";
szTitle = "";
nResult = SdRegisterUser( szTitle, szMsg, szName, szCompany );
if (nResult = BACK) goto Dlg_SdLicense2;
4. | Replace the deleted lines with the following: |
Dlg_SdRegisterUserEx:
szMsg = "";
szTitle = "";
szSerial = "";
nResult = SdRegisterUserEx(szTitle, szMsg, szName, szCompany, szSerial );
if (nResult = BACK) goto Dlg_SdLicense2;
5. | Change goto statements that previously pointed to Dlg_SdRegisterUser to point to Dlg_SdRegisterUserEx. |
6. | Press CTRL+F7 to compile the script. |
Using this approach, you can insert additional dialog in your installation’s user interface, or replace existing ones.
See Also
Dialog Customization Functions
InstallShield 2015 Help LibraryJune 2015 |
Copyright Information | Contact Us |