SdShowDlgEdit3 Example
InstallShield 2024 » InstallScript Language Reference
Project:
• | InstallScript |
• | InstallScript MSI |
/*--------------------------------------------------------------*\
*
* InstallShield Example Script
*
* Demonstrates the SdShowDlgEdit3 function.
*
* This script calls SdShowDlgEdit3 to get three folder names
* from the user. These are then displayed in a message box.
*
\*--------------------------------------------------------------*/
#include "Ifx.h"
function OnBegin()
STRING szTitle, szMsg, szField1, szField2, szField3, svEdit1, svEdit2;
STRING svEdit3;
begin
// Disable the Back button in setup dialogs.
Disable (BACKBUTTON);
// Set up parameters for call to SdShowDlgEdit3.
szTitle = "SdShowDlgEdit3 Example";
szMsg = "Please choose up to two valid directories in Backup: or " +
"Alternate: to back up the source directory.\n\n";
szField1 = "Directory";
szField2 = "Backup";
szField3 = "Alternate";
svEdit1 = "C:\\YourApp";
svEdit2 = "C:\\Backup1";
svEdit3 = "C:\\Backup2";
// Get three folder names from the user.
if (SdShowDlgEdit3 (szTitle, szMsg, szField1, szField2, szField3,
svEdit1, svEdit2, svEdit3) < 0) then
// Report an error.
MessageBox ("SdShowDlgEdit3 failed.", SEVERE);
else
// Display the folder names specified by the user.
szMsg = "svEdit1: %s\n\nsvEdit2: %s\n\nsvEdit3: %s";
SprintfBox (INFORMATION, szTitle, szMsg, svEdit1, svEdit2, svEdit3);
endif;
end;