The number of program starts can be limited using a Counter module
• | Add a new module and define the module type as counter = C |
• | Set a start value - e.g. 100 |
• | Decrease the counter using ValidateAndDecrease |
• | The actual counter value can be retrieved with RemainingLicenses |
• | The counter stops at 0 and ValidateAndDecrease delivers an error code 32 |
• | Use ShowMessagePage to display an customized message |
To ensure, that the license file can not be replaced by an older backup, you have to activate Tamper Detection.
Make the counter module a time limited module. This ensures, that the user can work with the application only for a specified time or for the defined number of program starts. The event which happens first, causes the application stop.
Example
The counter is set to 100 (100 program starts) and the time limitation is 10 days.
• | The application would stop after 10 days even if only 20 program starts have been made |
• | The application would stop immediately if 100 program starts have been made |