Any way to pre-install license key?

Here's the potential scenario:

Enterprise customer purchases 4,000 copies of our software. We provide one license key, set to 4,000 activations.

Rather than the customer's I.T. dept then providing the key to their 4,000 users, is there a way to write the key to all users' machines (i.e. is there a place it is stored that could be written to in a known way via a utility or script), such that all a user would have to do is click "Activate" in our app, but they would not have to enter a key.

Not only would this be more convenient for the users, it seems it would also be a lot more secure for us, because the 4,000 users who might be tempted to share the key, would never see it - only the customer's I.T. dept. would see it.

Well, you could build a special version of your installer for this user that hard-codes the key with a call to CheckAndSavePKey(). Then, in your installer or in your app, you just call Activate().

This way when the customer runs this special installer they won't have to enter anything.

Thanks, Wyatt, that's great - I think that is exactly what I wanted.

I can't locate documentation for the CheckAndSavePKey call; is there a link you can provide? Thanks much!

We don't have the documentation for the TurboActivate API on the website yet. The documentation is in the code. Look at the NSIS or InnoSetup examples in the TurboActivate API package (in the API\Installers folder).

Or if you want a list of every function and what it does & returns then open the TurboActivate.h file in the "API\C" folder.