InstallShield 2016 » InstallScript Language Reference
Project • This information applies to the following project types:
• | InstallScript |
• | InstallScript MSI |
/*--------------------------------------------------------------*\
*
* InstallShield Example Script
*
* Demonstrates the functions SdSetupType.
*
* This function displays a dialog that enables the end user
* to select one of the three standard setup types: Typical,
* Compact, or Custom.
*
\*--------------------------------------------------------------*/
#include "Ifx.h"
function OnBegin()
STRING szTitle, szMsg, svDir;
NUMBER nReserved, nResult;
begin
// Display the SdSetupType dialog.
szTitle = "SdSetupType Example";
szMsg = "";
// Default destination folder displayed in dialog.
svDir = "C:\\Example";
nReserved = 0;
nResult = SdSetupType (szTitle, szMsg, svDir, nReserved);
// Set TARGETDIR to the user selected destination folder.
TARGETDIR = svDir;
// Retrieve user selected setup type.
switch(nResult)
case CUSTOM: MessageBox("Custom setup type selected", 0);
case TYPICAL: MessageBox("Typical setup type selected", 0);
case COMPACT: MessageBox("Compact setup type selected", 0);
endswitch;
end;
InstallShield 2016 Help LibraryMay 2017 |
Copyright Information | Flexera Software |