InstallShield 2019 » InstallScript Language Reference
Project • This information applies to the following project types:
• | InstallScript |
• | InstallScript MSI |
/*--------------------------------------------------------------*\
*
* InstallShield Example Script
*
* Demonstrates the function SdSetupType2.
*
* SdSetupType2 is called to collect installation information
* from the user.
*
\*--------------------------------------------------------------*/
#include "ifx.h"
function OnBegin()
STRING szTitle, szMsg, svDir;
STRING svSetupType;
NUMBER nResult;
begin
// Disable Back button
Disable(BACKBUTTON);
// Set up parameters for call to SdSetupType2.
szTitle = "SdSetupType2 Example";
szMsg = "Choose the type of installation by clicking one of the buttons.";
// Retrieve setup type and directory information.
svDir = TARGETDIR;
nResult = SdSetupType2 (szTitle , szMsg, svDir, 0);
TARGETDIR = svDir;
// Create a string that describes the selected setup type.
switch (nResult)
case COMPLETE:
svSetupType = "COMPLETE: Application will be installed " +
"with all options.";
case CUSTOM:
svSetupType = "CUSTOM: You select the options that you " +
"want installed.";
default:
MessageBox ("Invalid setup type selection!", SEVERE);
abort;
endswitch;
MessageBox("Setup Type: " + svSetupType, 0);
end;
InstallShield 2019 Help LibraryApril 2019 |
Copyright Information | Flexera |