<< Click to Display Table of Contents >>
Navigation: WinLicense > FAQ > Registration > Common >
How do I register my application when it's expired? I see that WinLicense displays the expiration messages and exits.
The key to keep your application running even if it's expired is in the Customized Dialog panel. In the Customized Dialog panel you can tell Winlicense which messages you are handling by yourself and which ones are going to be handled by Winlicense.
Suppose that your application is protected with 30 days trial expiration. If you go to the Customized Dialog panel, select the MSG_ID_TRIAL_DAYS_EXPIRED and set it as Diabled (by right-clicking on it). Now you are telling Winlicense not to display that message when the application expires and keep your application running. So, you should check if your application is expired or not using the Winlicense SDK (in this case, you should call the function WLTrialGetStatus). If your application is expired, you can do what you consider, like displaying a registration form, limit functionality in your application, etc.
Notice that for each message that you plan to handle in the Customized Dialog panel, you should make sure that are really handling that message by calling the WinLicense SDK. A common mistake is to select all messages and for all of them you set them as "Disabled" and you are not checking with the WinLicense SDK when those events occurs (like a corrupted license, if the license has a wrong hardware ID, etc.) and your application will continue running normally when those "events" occurs.