I need to use a very long custom data for my file licenses. It can take about 100Kb of custom data but WinLicense rejects such long licenses. What can I do?

<< Click to Display Table of Contents >>

Navigation:  WinLicense > FAQ > Registration > Common >

I need to use a very long custom data for my file licenses. It can take about 100Kb of custom data but WinLicense rejects such long licenses. What can I do?

For file licenses, we are now allowing any size for the custom data. Notice that it's only available for licenses created with the function WLGenLicenseFileKey/WLGenLicenseFileKeyEx, WLGenLicenseRegistryKey/WLGenLicenseRegistryKeyEx (and their unicode versions)

 

When you protect your application, there is a special option where you can set maximum size for the custom data. Notice that by default WinLicense accepts up to 8000 chars for the custom data. In case that you want to increase that size, go to the Advanced Options pane and add the following line:

 

OPTION_ADVANCED_MAX_CUSTOM_DATA_SIZE=100000

 

In the above example, we have put "100.000" bytes for the custom data. Notice that for UNICODE licenses, you have to specify the double of bytes. For example, if you are creating a UNICODE license with 10000 chars, you have to specify the value 10000 * 2 = 20000 in the above option.