SdConfirmRegistration Example

InstallShield 2015 » InstallScript Language Reference

Project: This information applies to the following project types:

InstallScript
InstallScript MSI

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

*

* InstallShield Example Script

*

* Demonstrates the SdRegisterUser and SdConfirmRegistration

* functions.

*

* SdRegisterUser is called to prompt for the user's name

* and company name.  These entries are then confirmed when

* SdConfirmRegistration is called.

*

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

 

#define REG_TITLE      "SdRegisterUser Example"

#define REG_MSG        "Please register your product now."

#define CONFIRM_TITLE  "SdConfirmRegistration Example"

 

#include "Ifx.h"

 

function OnBegin()

    STRING  svName, svCompany;

    NUMBER  nResult;

begin

 

    // Disable the Back button in setup dialogs.

    Disable (BACKBUTTON);

 

    repeat

        // Get the user's name and company name.

        SdRegisterUser (REG_TITLE, REG_MSG, svName, svCompany);

 

        // Confirm that the information is correct. Pass a null string in

        // parameter four since SdRegisterUser does not get a serial number.

        nResult = SdConfirmRegistration (CONFIRM_TITLE, svName, svCompany, "", 0);

    until nResult = YES;

 

end;