SdLicense2 Example

InstallShield 2024 » InstallScript Language Reference

Project: This information applies to the following project types:

InstallScript
InstallScript MSI

/*--------------------------------------------------------------*\

*

* InstallShield Example Script

*

* Demonstrates the SdLicense2 function.

*

* This script calls SdLicense2 to display a license agreement

* and prompt the user to accept or reject that agreement.

*

* Note: The license agreement is read from a text file that

*       is stored at the location specified by the constant

*       LICENSE_PATH.  Before running this script, set that

*       constant so that it references an existing text file

*       on the target system.

*

\*--------------------------------------------------------------*/

 

 

 

#define LICENSE_PATH "License.txt"

#define TITLE "SdLicense2 Example"

 

#include "ifx.h"

 

function OnBegin()

begin

 

   // Disable the Back button in setup dialogs.

   Disable (BACKBUTTON);

 

 

   // Display the SdLicense2 dialog.

   if (SdLicense2 (TITLE, "", "", LICENSE_PATH, FALSE) = NEXT) then

      MessageBox ("Continue with the installation.", INFORMATION);

   endif;

 

end;