How would I go about implementing a system where keys only work for updates 12 months after the software is purchased? After that the customer has to renew the license otherwise the updates won't work with the existing keys?

<< Click to Display Table of Contents >>

Navigation:  WinLicense > FAQ > Registration > Common >

How would I go about implementing a system where keys only work for updates 12 months after the software is purchased? After that the customer has to renew the license otherwise the updates won't work with the existing keys?

You could create a license with 12 months expiration (365 days expiration) and you control the event when the license expires in the Customized Dialog panel and for the message MSG_ID_LICENSE_DAYS_EXPIRED, you set it to Disable. That is, even if the license is expired your application will continue running.

 

To know if the license is expired or not, you need to call the function WLRegGetStatus. Once that you know that it's expired, you disable updates in your application.

 

In order to renew the upgrade period again for another 12 months, you just need to send a new license (with 12 months expiration) to your customer.