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 

LicenseKeyGenerator Based off CustomGenerator

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



Joined: 13 Apr 2006
Posts: 5

PostPosted: Thu Apr 13, 2006 9:25 pm    Post subject: LicenseKeyGenerator Based off CustomGenerator Reply with quote

I was looking at the CustomGenerator and I would like to use the customer name in the generation of the keys. However, I would like to create a standalone executable that uses the same method to generate the same keys based off the username so that I can write some extensions to it (basically, copies to clipboard, outputs to an xml file, inserts into a database, things to allow me to run a commandline exe passing in arguments to generate the key).

I am not quite sure how to accomplish this. How can I make the LicenseKeyGenerator code use the CustomGenerator (or preferrably, implement the Customer Name as the product info so that I don't have multiple forms on the executable).

Thank you,

John R
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Fri Apr 14, 2006 11:19 pm    Post subject: Reply with quote

Simply create your own Console Application project and add a reference to the Infralution.Licensing DLL (or add the classes to your project - if you have bought ILS). Then use the EncryptedLicenseProvider.GenerateKey method to generate license keys.

To do something similar to what the CustomerGenerator sample does you would take the customer name as a command line parameter then use the EncryptedLicense.CheckSum function to generate a checksum which is what you would use in the ProductInfo when you call GenerateKey.
_________________
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