I want to license my application via Text keys, but I'm not sure how to proceed. Any help?

<< Click to Display Table of Contents >>

Navigation:  WinLicense > FAQ > Registration > Common >

I want to license my application via Text keys, but I'm not sure how to proceed. Any help?

If you plan to work with Text keys, you need to have a place in your application to insert the text key (like an Edit box where your customer copies the text key). Your customer has to insert the text key in one of your applications dialog and you have to call the WinLicense SDK API to check and install that text key (as a file or registry key)

 

To check the text key that your customer has inserted, you have to call the API WLRegNormalKeyCheck. If the license is checked OK (WLRegNormalKeyInstallToFile returns TRUE), you have to install the text key as file or registry key (depending if you have enabled "File" or "Registry" keys in the Registration panel in WinLicense). In case that you want to install the text key as a file key, you have to call the API WLRegNormalKeyInstallToFile. After that, your customer needs to restart your application (or call the API WLRestartApplication) and the application will start as registered.