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

Re: License Key

. oh i see . you got a point . but the reason why i was thinking of deleting used keys is the .txt files containing keys will then be increased until it overloads the website it is currently in . as if who knows . theres a possibility for me to use the same url for validation for other applications and that means more keys used regularly . how can i add MySQL if i do not have my own custom domain . is it still possible ? (lets say http://www.myweb.webappexample.com) .

Code: Select all

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.
sorry i didnt get this one yet . also what do you really mean by Server/Physical Server . is it the DSL or Broadband Provider i am using ? . i just want to clarify basic things first . :mrgreen:

and also is there any way for me to have a record of who and when did a end user used a license from me (like a log)
dms
Posts: 164
Joined: Tue Aug 28, 2007 7:11 am
Location: UK

Re: License Key

is it the DSL or Broadband Provider i am using ?
Let me give you an example relating to me. I have a broadband provider ( in my case BT) and I rent space on a server for my website from a host provider. I had to ask them to install a database for me on the server that I could use for licence validation as I could install it myself. This they did and provided me with access to a console to edit the databse they had created for me (add tables, records etc).

This you will need to do first before you do anything else.

Once you have access to a database containg the relevat fields (and any others that you might want you can then go on to create an example project in AI to test it. There are a couple of scripts for creating simple database tables on a database that AI provide (you'll find reference to them in the documentation). These should give you a good start.

Now to the license keys themselves. Let's say that I have a licence key in the format of ###-###-###-### so a valid key might be 111-222-333-444. I'll use AI built in key generator to generate some keys (I don't expect to sell vast mumbers of my bits of software so I'll limit the key generation to say 10,00 items. These I generlly store in an excell file on my computer and I add an extra column to the excel shhet that I check as each key gets uploaded to the table containing the keys in the database on the server I rent. This I do through the console my host provider gave me access to. I rarely add more that 100 keys at a time so I always do it manually.
I DO NOT store the excel file on the server, it remains on my desktop so that Only I have access to it.

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

Re: License Key

. ok so what you mean a server is a website where you created your own website/homepage ? . if so what i am gonna do is to request them to give me access and make a database for validation on my page ? . so you mean i dont need any MySQL desktop softwares at all ? . ok sir i think im getting it . do i need to fill out the SQL Script & Predefined Connection on the server tab of AI . also i saw some port and ip address table . what is it that i have to insert to this tables and how to can i obtain my port and ip ? will it be that i have to use my internet setting for this ? . thanks again for replying .
dms
Posts: 164
Joined: Tue Aug 28, 2007 7:11 am
Location: UK

Re: License Key

a server is a website where you created your own website/homepage
In the context of server side validation in AI yes.
request them to give me access and make a database for validation on my page
That is the best approach, but the database that they create for you will not be on your home page, in will be on the server (the physical machine in this case) upon which your website resides. You will need to make adjustments to the validate.php script that is used in the examples provided by AI to actually reference your database and tables therein.
i dont need any MySQL desktop softwares
That is correct, the MYSQL database (or it could be MS SQL (it depends what yor host provider prefers to use)) will be on the server that your host provider uses.
do i need to fill out the SQL Script & Predefined Connection on the server tab of AI
No you do not, in fact you won't need that dialog at all unless your application is using a database that needs to be configured. All you will need to fill in url where the updater can find the php scipt that you use to validate the licence. You fill that in on the Licencing page in the text box underneath the Server-Side Validation radio button. You do not need to bother aboutport and ip addresses either.

Now that you seem to be much clearer about the concept of the 'server' you should reread the tutorials that AI has in its help file about server side validation. It's actually a remarkably simple process (although I accept that it takes a little time to fully understand it) and it works very nicely.

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

Re: License Key

ok sir i believe im on 79% on knowledge progress now :idea: . thanks for AI staffs & moderators specially you guys for helping me out . again my deepest apology if i am so desperate to know the main details of all about this specially scripting as it is not yet my strength though what my goal is to be a programmer . :oops:

Code: Select all

 in will be on the server (the physical machine in this case) upon which your website resides.
what i cant get really sir is Physical Machine . what is that physical machine you are saying . i cant get it forgive me . :shock:
thank you sir for the informations you give me . :mrgreen:
dms
Posts: 164
Joined: Tue Aug 28, 2007 7:11 am
Location: UK

Re: License Key

If you have a computer sitting on or next to your desk then that is a physical machine, something you can touch.

In essence when we are talking about the server (in relation to licensing) unless you personally have a piece of physical machinery at your location, on which you have placed the files that make up the pages of your website, then your host providers will have a physical machine onto which your website files are loaded. You will probably have ftp access to a section of the hard disk of that machine on which your wesite files are located so that you can make changes to them, but you will not have access to other areas of the hard disk(s) of that machine upon which your host provider may be hosting other peoples websites. This will almost certainly be the case when it comes to the database.

Try not to worry too much about physical machines, or abstract servers. All you need to do is:

1 get your host provider to provide you with a database into which you can create a table to hold your license keys (AI provide a sql script to create a table called clients on such a database).

2 Edit the validate.php script (again provided by AI so that the bit that refers to the name of the database in fact refers to whatever the database that your host provider has given you is called.

3 Upload that php file to the root of your website .

4 fill in the url of your website into the licensing page of AI

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

Re: License Key

. ok sir i got it . so a physical machine is what im staring at right now . ok sir so for now ill contact my website provider . tnx for the tips sir . ! . i hope i can do this now (or maybe not :mrgreen: )


no wait sir ! . i am just using a free website builder . i dont have any custom domain . i just use like . is it ok . will the website builder give me access to its database even if i use their free service ? . thanks
dms
Posts: 164
Joined: Tue Aug 28, 2007 7:11 am
Location: UK

Re: License Key

will the website builder give me access to its database even if i use their free service ?
I would imagine that access to anything other than very basic facilities would be unlikely in this sort of scenario. If you are actively planning to develop and release software applications to the general public (and presumably provide updates for them in the future) then you will almost certainly need to get your own properly hosted domain, for whic you will obviously then have to pay.

Clearly the amount that you will pay varies from provider to provider and I'm really not in a position to give you any sound advice on who you should choose. However you need to find one that will provide you with a database and and easy means to access it.

Dom
navyahbolli
Posts: 3
Joined: Wed Aug 27, 2014 8:18 am

Re: License Key

Hi,

I have a requirement like
1) I will package 3 application, depending upon the licence key the respective application need to be installed.
Example: if I have 3 Applications A,B,C , then if I give Licence key from user input for application A and B then both the applications need to be installed, if I give key for B and C then applications related to B and C should be installed. How can I use licence key configuration for the below requirement.

Need a urgent help.

Regards,
Navya
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: License Key

Hello Navya and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

In order to achieve what you want you can add your applications in separate features. Then, you can use our "Package Serial Validation" and "Stock Keeping Units" support.

If you have any questions/doubts let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”