SdRegisterUserEx Example
InstallShield 2020 » InstallScript Language Reference
Project:This information applies to the following project types:
| • | InstallScript |
| • | InstallScript MSI |
/*--------------------------------------------------------------*\
*
* InstallShield Example Script
*
* Demonstrates the function SdRegisterUserEx.
*
* SdRegisterUserEx is called to collect installation information
* from the user. The information is stored in a list and
* displayed in SdShowInfoList.
*
\*--------------------------------------------------------------*/
#include "Ifx.h"
function OnBegin()
STRING szTitle, szMsg, svName, svCompany, svSerial;
LIST listData;
begin
// Create the list.
listData = ListCreate (STRINGLIST);
// Set up parameters for call to SdRegisterUserEx.
szTitle = "SdRegisterUserEx Example";
szMsg = "Please enter your name, company, and serial number.";
// Retrieve registration information.
SdRegisterUserEx (szTitle, szMsg, svName, svCompany, svSerial);
// Add the information to the list.
ListAddString (listData, "User Information: ", AFTER);
ListAddString (listData, " " + svName, AFTER);
ListAddString (listData, " " + svCompany, AFTER);
ListAddString (listData, " " + svSerial, AFTER);
ListAddString (listData, "", AFTER);
// Display user selections from list in SdShowInfoList.
szMsg = "The user name, company name, and serial number " +
"entered in SdRegisterUserEx.";
SdShowInfoList(szTitle, szMsg, listData);
end;