InstallShield 2018 » InstallScript Language Reference
Project • This information applies to the following project types:
• | InstallScript |
• | InstallScript MSI |
/*--------------------------------------------------------------*\
*
* InstallShield Example Script
*
* Demonstrates the SdCustomerInformationEx function.
* SdCustomerInformationEx prompts the end user to enter a user
* name, company name, and serial number, and to specify whether
* the installation is for anyone who uses the target system
* or for the current user only.
*
\*--------------------------------------------------------------*/
#include "ifx.h"
function OnFirstUIBefore( )
// ...other variable declarations...
STRING svName, svCompany, svSerial, szMsg;
NUMBER nvUser, nReturn;
begin
// ...show other dialogs...
// get the end user's name and company name
SdCustomerInformationEx("", svName, svCompany, svSerial, nvUser);
if (nvUser = 0) then
szMsg = "per-user installation";
else
szMsg = "all-users installation";
endif;
MessageBox("You entered:\n\n" +
"Name: " + svName + "\n" +
"Company: " + svCompany + "\n" +
"Serial number: " + svSerial + "\n" +
"Type: " + szMsg,
INFORMATION);
// ...other dialogs...
end;
InstallShield 2018 Help LibrarySeptember 2018 |
Copyright Information | Flexera |