Store data in the license file
This feature allows storing encrypted data in the license file. The license file acts like a small database. There are commands to save, retrieve and delete a record.
You can generate and deploy license files with already stored values or you can store information during the runtime of your program. The main idea for this data storage is to store configuration values or other custom values you do not want to have in the registry, an ini-file or a database.
All values can either be displayed in the License Viewer in the section Configuration or they can be just used internally and then they are invisible in the License Viewer. Each value can have a different setting (e.g. value 1 and 3 are visible in the License Viewer, value 2 is invisible).
The ID for each record must be unique.
There are different options, how to add and modify the data.
Store data using the License Generator
All values can be modified in the data area within the License Generator.
|
There is a complete set of DLL commands to read and modify the data. Save a value Command SetConfig. If the ID already exists, the existing value is updated with the new value. You can specify, if the value should be visible in the License Viewer or not. Read a value Command GetConfig Delete a value Command DeleteConfig Check if a value exists Command ExistsConfig Check if value is visible in the License Viewer Command IsConfigVisible |
You can also store date in the project template, which are the same for all users. It is e.g. a good idea to store the CopyProtectionsSwitchOnKey here.
Example <Configs> <Config name="Key" visible="no">mdDEH-5EP93-9E4IY-3tN8X-nQD5k-6x147</Config> <Config name="BasicConfiguration" visible="yes">This is a text</Config> </Configs> |
The Automatic License Generator can be used to add the data when a license file is created.
Order XML file <ProductID>1</ProductID> <Quantity>1</Quantity> <AbsoluteLics>yes</AbsoluteLics> <Configs> </Product>
Please check the separate documentation for the Automatic License Generator. |
The data area can also be changed if the license file is uploaded to the Activation Server, then modified and then downloaded again
• | License file upload / download in the source code |
Do not store large data e.g. MIME-encoded binary data like images or movies as this would significantly slow down the access to the license file. Especially with concurrent user, the license file is permanently read and updated.
This feature is only available in the Professional Edition.