Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Lic file name

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Licensing Support
View previous topic :: View next topic  
Author Message
marto



Joined: 21 Nov 2005
Posts: 1

PostPosted: Mon Nov 21, 2005 1:41 am    Post subject: Lic file name Reply with quote

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
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Mon Nov 21, 2005 3:08 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Wed Feb 15, 2006 9:50 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Licensing Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group