If you want to offer an evaluation version, which needs to be activated using a unique Serial Number, use the following workflow. If the evaluation version should be usable without a Serial Number but with a registration and activation, see workflow: Evaluation Version requires registration - no key needed
Modify the Project Template and add a new module with type Yes/No (module type = 4). This module is only used for activation of the evaluation version. Set the default value for this module to No , Expiry Date to 01/01/1900 and name it e.g. Evaluation Version. Setting the expiry date to 01/01/1900 will require a Serial Number before the user can start the application.
Implement this logic at the start of your application:
• | Open the license file without user interface - PrepareAdvanced - (in case of an error continue with PrepareAndCheck for the main module) |
• | Check if the module Evaluation Version is set to No with ValidatesYes - this indicates that the demo version was not activated |
If it is No (return code 3) then the evaluation version has to be activated - otherwise it was already activated. Continue with PrepareAndCheck for the main module (QHD001)
• | Use PrepareAndCheck with the moduleID of the evaluation version module (in the example screenshot below it is QHD002). The user has to activate the software |
• | If the return code is 0 (activation was successful) then you could delete the module QHD002 (DeleteModule) and continue with PrepareAndCheck for the main module (in the example screenshot below it is QHD001) |
• | If the return code is <> 0 quit the application |
Create a license file with an additional module. The main module should have the days set for the evaluation period. The module Evaluation Version should be set to expired (01/01/1900) and value = NO to indicate, that there was no activation done.
|
Activation Server - Configuration Settings
The project.config file needs no changes. Only the workflow file (config-autogenerator-easygo.xml) has to be changed. You have to add a second product with the module ID of the Evaluation Version module.