InstallShield 2016 » InstallScript Language Reference
Project • This information applies to the following project types:
• | InstallScript |
• | InstallScript MSI |
/*-----------------------------------------------------------*\
*
* InstallShield Example Script
*
* Demonstrates the AskText function.
*
* This script gets a company name from the end user.
*
\*-----------------------------------------------------------*/
#define MSG_TEXT "Please enter your company name."
#define DEFAULT_COMPANY "My Software Company"
// Include Ifx.h for built-in InstallScript function prototypes.
#include "Ifx.h"
export prototype ExFn_AskText(HWND);
function ExFn_AskText(hMSI)
STRING svCompany, szTitle;
NUMBER nResult;
begin
// Get the company name.
nResult = AskText (MSG_TEXT, DEFAULT_COMPANY, svCompany);
if nResult = NEXT then
// Display the company name that was entered by the user.
MessageBox ("Company: " + svCompany, INFORMATION);
endif;
end;
InstallShield 2016 Help LibraryMay 2017 |
Copyright Information | Flexera Software |