Secure Installers:

I want to make my NSIS installer link to a webpage whereby a customer would have to enter their license key and receive an activation key, then have a set amount of activations.

Do people provide webshops with the keys to begin with, which they distribute sequentially to the customers? I'm learning Javascript at the moment, I think with that I could eventually make a table of customer's keys and their activation codes, and activation numbers.

Just wondering how about other's go about this,

Or can we rely on eCommerce packages to handle it all?

Kind regards,