If you do not use the EasyGo workflow but your own screens use this workflow to transfer a license.
Add a new menu item (e.g. Help, Transfer license) within your application and make the following Source Code modifications.
• | Activate the license transfer option using SetRegisterLicTransfer. Set option TransferLicence to true, to transfer the complete file. This command must be used before WebRegisterExt. |
• | Set LockIsError to true. This enables a special check to find out if an older license file was restored after a transfer was done. It would set the license to locked |
• | Validate - Would return error code 300 to indicate that an older license file was restored and the license was set to locked. Implement a reactivation screen like this: License deactivated / reactivate license |
• | You could always use GetVerificationOfModule after the validate command. The result frozen = 2 indicates that the license was locked . Implement a reactivation screen like this: License deactivated / reactivate license. |
• | Use CheckModuleSubscription to detect, if the local license was locked previously using the regular online check (it will automatically activate the license again if possible) |
• | 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 DeactivateModule. Use the main module ID and your Serial Number / ID as parameter |
The complete license file is uploaded to the Activation Server 4 and the license file on the local PC is locked.
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
You can disable the progress screens using ShowWAStartPage, ShowWAProgressPage and ShowWAResultPage.