InstallShield 2018 » InstallScript Language Reference
Project • This information applies to the following project types:
• | InstallScript |
• | InstallScript MSI |
/*--------------------------------------------------------------*\
*
* InstallShield Example Script
*
* Demonstrates the SdCustomerInformation function.
* SdCustomerInformation prompts the end user to enter a user
* name and company name, 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, szMsg;
NUMBER nvUser, nReturn;
begin
// ...show other dialogs...
// get the end user's name and company name
SdCustomerInformation("", svName, svCompany, 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" +
"Type: " + szMsg,
INFORMATION);
// ...other dialogs...
end;
InstallShield 2018 Help LibrarySeptember 2018 |
Copyright Information | Flexera |