I need to change the license location and file name for each of my customers, but WinLicense seems to expect a fixed location and filename. What can I do?

<< Click to Display Table of Contents >>

Navigation:  WinLicense > FAQ > Registration > Common >

I need to change the license location and file name for each of my customers, but WinLicense seems to expect a fixed location and filename. What can I do?

You can change the file location and file name in runtime. To do that, you can make use of the Plugin system in WinLicense. Please, follow the next steps:

 

1) Create a simple DLL (which will be included in the Plugin System)

 

2) Create a function named SecureEngineInitialize (and export it) in your DLL. That function will set up the following environment variables:

 

  WLDefaultLicenseFolder

  WLDefaultLicenseName

 

  WLDefaultLicenseFolder will be the location where you expect your license to be located

  WLDefaultLicenseName will be the license name that you expect

 

3) Drag and drop the compiled DLL into the Plugins panel in WinLicense.