View previous topic :: View next topic |
Author |
Message |
marto
Joined: 21 Nov 2005 Posts: 1
|
Posted: Mon Nov 21, 2005 1:41 am Post subject: Lic file name |
|
|
I am very happy with the ILS and have found it very easy to include in to my project.
I have one question, is it possible to change the name of the lic file? |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Mon Nov 21, 2005 3:08 am Post subject: |
|
|
Yes there are two ways you can do this:
1. Derive your own LicenseProvider class from EncryptedLicenseProvider and override the GetLicenseFilePath method to return the full path of the license file. You can call the GetLicenseDirectory method to get the standard location (in the bin directory) if you just want to change the name.
2. If you are licensing an application (rather than a component/control) you can take full control over reading and validating of the license key by using the EncryptedLicenseProvider.ValidateLicenseKey method directly (instead of using the framework LicenseManager calls). The "Custom Licensed Application" sample shows how to do this to read the license key from an XML settings file. _________________ Infralution Support |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Wed Feb 15, 2006 9:50 pm Post subject: |
|
|
Version 2.2.0 now adds a third easier way of specifying the license filename when licensing applications. The overloaded GetLicense() method takes the filename as a parameter. If this is a relative path it will be relative to the application bin directory. See the new samples for examples of how to do this. _________________ Infralution Support |
|
Back to top |
|
|
|