This is the main command to invoke the EasyGo dialogs and perform the complete basic license testing:

 

open the license file with the EasyGo screens
check if it is a time limited trial version - in case the trial expired, displays the screen: Evaluation period expired
check if the product is activated - otherwise offers to activate the product
check if copy protection is OK - in case of an error displays the screen: copy protection violation

 

See List of Return / Error Codes

 

The prepareAndActivate command opens the license file. If it is the first program start and the license file is not available, it downloads the license file with the default settings from the Activation Server 4.

 

 

Name

prepareAndActivate                                                                                              

Params

Parameter

Type

Example

Note

Project Name

NSString

demo-easygo-mac

Short Name (internal name) for the project without spaces

Path to license file and file name

NSString

/users/paul/documents/myapp.lic

The full path to the license file.  If the license file does not exist, it is downloaded from the Activation Server 4

Project Secure Key

NSString

r1lkYAp1xGQN81fBrcZ1dfXtw1doy3Z1l4KHy0N2yvL0ZBDcX2....

This key is used to encrypt the license file and should contain characters, numbers and special characters and should have 25 or more characters

Password

String

26YjnF1XSUr423BDfL1A6IE91t9gLF0STvNQ1CoR021251H3........

The password is defined in the project .config file

URL

NSString

https://registerserver.net/lptest/lpws.asmx

Link to the Activation server. The URL has to end with /lpws.asmx

ModuleID

NSString

QHD001

Unique ModuleID – identifies the module / feature

Returncode

Returncode

Type Integer

Note

0

No error occurred

Other return codes

See list of return codes

 

 

i_green_sm

Only continue if return code = 0. All other errors are handled by EasyGo
You have to use setActivationScreens to define necessary values for the dialogs