License Key - Advanced Installer Community
naiTx25
Posts: 15
Joined: Sun Mar 04, 2012 7:00 am

License Key

hi good day to all . im new to Advanced Installer . (including i really don't know anything about it) . i would like to ask 2 questions for now:

1. how can i make a license key that is One-Time-Use ?

2. how can i change the features ? i only see main feature in the setup ?

3. i tried to compile my application (which i call Office Suite 2010) right after i install it i run it, but i dont see any registration screen even though i enabled license in the licensing option ? . my application has no boarder and is not made with VB . just a autoplay maker .


i hope you can help me coz i want to learn things in programming :) . thanks in advance and god bless :D
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: License Key

Hi and welcome to our forums,

1) Can you please give me more details? Do you want the license to be used by only one PC, at any time, or only once by a random PC. For the first option you can could use our licensing support with a computer specific license. For the second option you could use the simpler serial validation support, with the option to register using an online server.

2) Features can be defined/edited from Organization page.

3) To use our trial/licensing support you need to also integrate it in your application, as presented in our samples. It is not enough to simply enable it from the GUI of Advanced Installer. Examples of integrating it are presented in the following articles.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
naiTx25
Posts: 15
Joined: Sun Mar 04, 2012 7:00 am

Re: License Key

. first of all thanks for the reply . yes sir what i want is one serial key per use . what i mean is like a disposable key . once used it cant be used again . ok ill try reading and understanding all about licensing . thanks for the reply sir . hope you can reply again
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: License Key

In this case you will need to go for the server-side serial validation support. In which you will store the license registration information on your server.

Please note that this requires for all users to have an active Internet connection at install time.

Regards.
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
naiTx25
Posts: 15
Joined: Sun Mar 04, 2012 7:00 am

Re: License Key

wwll if this is the case sir how can i do that ? . what kind of server will i do ? . how can i make a server ? is it like an ordinary website ? . can i use for example webs.com ? . sorry if i ask you so many things . i hope you understand what i want . and thats only to learn more :) . god bless
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: License Key

You can use your website as a server. The following article explains how to configure server-side validation for your package.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
naiTx25
Posts: 15
Joined: Sun Mar 04, 2012 7:00 am

Re: License Key

. ah ! ok sir i got it ! . another question . is the license keys uploaded one at a time . i mean only one valid license key at a time . when the license key is validated and used then it will be deleted ? . or i can upload a batch of license keys at the same time ? can i copy the example codes given at the "how to configure server side validation" ? . i know nothing yet at coding .
dms
Posts: 164
Joined: Tue Aug 28, 2007 7:11 am
Location: UK

Re: License Key

When your end user enters the licence key that yo have provided them with for your software, that licence key (and only that licence key) is validated against the keys that are stored in the database that you will have created on your server.

AI does not export licence keys to your server you need to add them yourself. You could of course (depending on the complexity of the key you are using) get AI to generate a whole load of keys for you, save them to a text file and add those keys to the database on your server as and when they are required.

Another option would be to write some sript to run on your server that would generate keys and populate the database, but as you yourself say coding is not as yet your strong point so if I were you at this statge I would use AI to generate a load of keys for me, save them to text file and enter those keys by hand into the database on my server as and when I required them.

NB: In order to get AI to generate keys you will need to temporarily turn off the server side validation option. Once you have generated your keys do not forget to turn it back on again. Also be aware of the fact that whilst the keys generated in any one batch will be unique, that guarantee does not follow for subsequent batches of generated keys, so try and generate enough keys for your needs first time around.

Dom
naiTx25
Posts: 15
Joined: Sun Mar 04, 2012 7:00 am

Re: License Key

well then thanks for the information sir ! . but how will i add the .txt containing the serial keys to my server ? . (for now i have 4,000,000 unique key combinations) . is it just upload the txt to my validation page and thats it ? . also how can i create a code for my validation server . what are the tools that i need ? . is there any good tutorial out there ? or can i copy AI example of coding ? . thanks again ! . also . after my end user validates and uses a single key combination . will it be automatically deleted in my database, or it will be blocked ?
dms
Posts: 164
Joined: Tue Aug 28, 2007 7:11 am
Location: UK

Re: License Key

for now i have 4,000,000 unique key combinations
You must be expecting a lot of sales!!

There is no magic way for AI to put these into the database for you, you will either have to enter them manually or you will need to write a function that you can run (probably on your server) to run through the text file containing your serial numbers and then add them to the database. It's not too difficult a task, but would probably involve the use of javascript at which I am not any good.

As to your second point, once your user has activated the serial number that you have provided them with that serial number will only be 'blocked' if you put a limitation on the number of times that it can be used. There are examples of how do do that in the documentation. The only time that a licence key will be deleted from your database is if you delete it.

Dom
naiTx25
Posts: 15
Joined: Sun Mar 04, 2012 7:00 am

Re: License Key

dms wrote:You must be expecting a lot of sales!!
lol . its not that i will upload all of it . i just want to store many unique and no duplicated key combinations at all . maybe ill upload just 100 for now . as you have said . how can AI help me to upload the (say this is my keys).txt to my validation server ? . ok so one a user uses a key it will be blocked . for example . all 100 keys are used and blocked in my server . and then i reuploaded the same combinations of 100 keys that has been used . (say i renewed it) . will it remain blocked ? . tnx for your help sir im kind of knowing many things now . also if i upload a batch of 100 keys to a server . can you give me a tutorial on how to do it and how to make a server ?
dms
Posts: 164
Joined: Tue Aug 28, 2007 7:11 am
Location: UK

Re: License Key

my validation server
You need to be very clear about the terminology here, and perhaps to a certain extent we have not helped matters.

If you have a wesite, then that wesite will reside on a server somewhere (and that is the server to which we are all refereing when we talk about the validation server. It needs to be at a location that can be acceseed (via the internet) by your end users when they register / licence your application.

Now on that server you will need to have a database engine (this is typically something that your host provider will install for you (and it will typically be either MS SQL or MYSQL (you can find out more about these by doing a google search). Your host provider will also in all probabality provide you with access to a tool that will allow you to configure a database or databases within that copy of MS SQL or MYSQL. It is within this database that you will enter the licence keys that AI has generated for you, and it is that database that will be checked by the Validate php script to which you should have seen reference in the documentation. You need to be very clear that you understand that last bit because it is the key to the way that serverside validation works.

Logically you would not replace licencekeys with new ones as they become used up by your end users, you would simply add more keys to the table that holds the information in your database. If you will just be adding a few keys at a time it really isn't very difficult to do by hand.
how to make a server
Hopefully by now it should be a bit clearer to you that you do not need to make a server as such (your website should already be housed on a server and it is that server that you should be using. What you DO need to make/create however is database on that server, and to do that the server will need to have a database engine on it and you will need to be able to create a database (or have one created for you on it). Once that databse is there then you need to be able to access it and configure it and the people who administer your website will probably provide you with tools to do that.

Once all that is done you will find that implementing server side validation is very easy.

Dom
naiTx25
Posts: 15
Joined: Sun Mar 04, 2012 7:00 am

Re: License Key

. sorry for my words . what i mean server though is the url in which a user will take validation on a serial key and i do have website alive on the internet . so all i have to do is to search for this MySQL ? . ok . thanks for the very big help info ! . hopw this will be my last question for now . sorry to bother and to be a headache . keep up the good work and god bless .
naiTx25
Posts: 15
Joined: Sun Mar 04, 2012 7:00 am

Re: License Key

. lets say i will use MySQL . is it that i have to download all MySQL Softwares ? (http://dev.mysql.com/downloads/) . also . last question about the serial keys . lets say that all the 100 keys inside the .txt onto my website is used and blocked ? . can i delete it and upload a new .txt of serial keys containing new serial key combinations ? .
dms
Posts: 164
Joined: Tue Aug 28, 2007 7:11 am
Location: UK

Re: License Key

Right

If the your website is on a server (the actual physical machine in this instance) that you OWN and have control over then you can add what you like to it and you could add MYSQL by following all the instructions on that site that you mention. You'll also need some sort of administration console and PHPmyAdmin is pretty good.

If however you do not own the physical server (you're renting the space on which your website resides) then you will need to negociate with your host provider in order to get access to a database and an administration console.
is used and blocked
The keys themselves won't be blocked per see (used yes, and possibly up to the number of times that you allow them to be used, but not blocked. You need to understand that point. However following on from there why would you want to delete keys that have been used. Suppose for example that Caphyon (the people who make AI) deleted all the keys that they issue to people once they had purchased a license (which for clarification they don't), and suppose a few years down the line you needed to reinstall AI but had forgotten your key. You write to Caphyon, but they've deleted it, so then what happens? No you want to keep used keys in the table, that way you'll always be able to reference them if required.

Dom

Return to “Common Problems”