InstallShield 2019 » InstallScript Language Reference
Project • This information applies to the following project types:
• | InstallScript |
• | InstallScript MSI |
/*--------------------------------------------------------------*\
*
* InstallShield Example Script
*
* Demonstrates the SdShowDlgEdit2 function.
*
* This script displays a dialog that prompts the user to
* specify a source folder and a target folder. It then displays
* the user's selections in a message box.
*
\*--------------------------------------------------------------*/
#include "Ifx.h"
function OnBegin()
STRING szTitle, szMsg, szField1, szField2, svEdit1, svEdit2;
begin
// Disable the Back button in setup dialogs.
Disable (BACKBUTTON);
// Set up parameters for call to SdShowDlgEdit2.
szTitle = "SdShowDlgEdit2 Example";
szMsg = "All files within the Source directory will be copied into " +
"the Target directory.";
szField1 = "Source:";
szField2 = "Target:";
svEdit1 = "C:\\Example\\Source";
svEdit2 = "C:\\Example\\Target";
// Get source and target folder names.
if (SdShowDlgEdit2 (szTitle, szMsg, szField1, szField2,
svEdit1, svEdit2) < 0) then
// Report an error.
MessageBox ("SdShowDlgEdit2 failed.", SEVERE);
else
// Display the user's selections.
SprintfBox (INFORMATION, szTitle, "svEdit1: %s\n\nsvEdit2: %s",
svEdit1, svEdit2);
endif;
end;
InstallShield 2019 Help LibraryApril 2019 |
Copyright Information | Flexera |