InstallShield 2019 » InstallScript Language Reference
Project • This information applies to the following project types:
• | InstallScript |
• | InstallScript MSI |
/*--------------------------------------------------------------*\
*
* InstallShield Example Script
*
* Demonstrates the function SdWelcomeMaint.
*
* The SdWelcomeMaint function displays a dialog that is intended
* for use at the beginning of a maintenance setup (the re-running
* of a setup that has already been run). The dialog contains
* Modify, Repair, and Remove option buttons.
*
\*--------------------------------------------------------------*/
#include "ifx.h"
function OnBegin()
STRING szTitle, szProductName;
NUMBER nType, nReturn;
begin
// Disable the Back button in setup dialogs.
Disable (BACKBUTTON);
// Set the product name to substitute for the %P place holder.
szProductName = "My Application";
SdProductName (szProductName);
szTitle = "SdWelcomeMaint Example";
//Specifies which option button is the default selection.
nType = REMOVEALL;
// Display the SdWelcomeMaint dialog. The null string in
// parameter two specifies the default message, which uses
// the %P place holder.
nReturn = SdWelcomeMaint (szTitle, "", nType);
switch(nReturn)
case MODIFY: MessageBox("SdWelcomeMaint selection: Modify", 0);
case REPAIR: MessageBox("SdWelcomeMaint selection: Repair", 0);
case REMOVEALL: MessageBox("SdWelcomeMaint selection: Remove", 0);
endswitch;
end;
InstallShield 2019 Help LibraryApril 2019 |
Copyright Information | Flexera |