Add a new menu item (e.g. Help, Transfer license) within your application and make the following Source Code modifications.
All screens, which handle the license transfer including error situations can be found here.
• | Activate the license transfer option using SetRegisterLicTransfer. Set option TransferLicence to true, to transfer the complete file. This command must be used before PrepareAndCheck. |
• | Retrieve main module ID with MainModuleID |
• | Retrieve Serial Number / ID with GetSerial. If the Serial Number / ID is empty then the license transfer is not possible as the product is not activated yet |
• | Transfer the license using the command TransferLicence and the main module ID and Serial Number as parameters |
The complete license file is uploaded to the Activation Server 4 and the license file on the local PC is locked.
• | If the user restarts the application, an online connection would try to reactivate the license - see details License deactivated / reactivate license. The user gets different options to activate the license again |
• | If the user installs the application on PC B, he can activate the product using the same Serial Number / ID he used to activate the product on PC A |
• | Modules from type license per PC or User: All the PC / User entries are removed after the download. Example: A 10 user license on Server A, 7 licenses are used and 3 licenses are free. After the license transfer 9 licenses are free on Server B (one is used by the PC which does the license transfer) |
• | The license file can be viewed or changed on the Activation Server 4 |
A transfer license button could also be added in the License Viewer - see Transfer License button
To find out, if a module / license is deactivated, use GetVerificationOfModule (result: frozen = 2)
If the user makes a backup of the license file before he does the license transfer and restores the license file after the transfer, automatically a new online validation will be done during the next application start. This ensures that the license cannot be used twice.