InstallShield 2016 » InstallScript Language Reference
Project • This information applies to the following project types:
• | InstallScript |
• | InstallScript MSI |
/*--------------------------------------------------------------*\
*
* InstallShield Example Script
*
* Demonstrates the SdAskOptions function
*
* This script displays a dialog that offers installation
* options.
*
* Note: To run this example script, create a project (or
* insert into a project) with several features and/or
* subfeatures.
*
\*--------------------------------------------------------------*/
// Specify your feature name here. These are the names you gave to your
// features in the IDE. A NULL ("") string specifies base features.
#define FEATURE ""
#define SDASKOPTSTITLE "Component Selection"
#define SDASKOPTSMSG1 "Select components to install."
#define SDASKOPTSMSG2 "Your selections will be used to effect file transfer."
#define APPBASE_PATH "Your Company Name\\Your Product Name"
// Include Ifx.h for built-in InstallScript function prototypes.
#include "ifx.h"
function OnFirstUIBefore()
begin
// Set a default destination path.
INSTALLDIR = PROGRAMFILES ^ APPBASE_PATH;
// Disable the Back button in setup dialogs.
Disable (BACKBUTTON);
// Get installation options.
SdAskOptions (SDASKOPTSTITLE, SDASKOPTSMSG1, SDASKOPTSMSG2,
"", FEATURE, NONEXCLUSIVE);
end;
InstallShield 2016 Help LibraryMay 2017 |
Copyright Information | Flexera Software |