If the user gets a copy protection violation error - see screen - you can try a reactivation. This makes sense to cover the situation, that a user has changed the hardware criteria you used for copy protection.
Example
• | Hardware ID for copy protection used is MAC address (installation code 2) |
• | User changes his network adapter |
• | During program start a copy protection error occurs |
• | Make an online check to test, if other criteria match (e.g. volume ID and hostname are still the same) |
• | Turn on the copy protection again using the new MAC address |
Source Code Integration
If the result of PrepareAndCheck is error code 1024 (copy protection violation) then
• | Retrieve the Serial Number using GetVal(<Main module>, “KYS”). You will get a list of all keys but only use the first key. This is the Serial Number |
• | Now perform a license check including product activation using WebRegister and the Serial Number as ID. Product has to be the main module number. |
• | If you get an error code = 0, then the reactivation was successful. All other error codes should terminate the application |
Make sure to make the correct Web Activation Server definitions for the reactivation.
See also
Create Activation Key / Serial Number for multiple usage
Web Activation Server definitions
Allow Reinstallation / Product Reactivation