QLM Store Key on Network Share
Doing this with Excel VBA
Need to store key on a network share that will allow for multiple activations. Basically, trying to create Solution #3 outlined here: https://support.soraco.co/hc/en-us/articles/207684126-Ease-the-license-activation-burden-for-large-enterprises-
I know that in QLM, will need to create a Generic Key with x Seats.
The first time the license is activated, the user will enter that key. The activated key then needs to be stored to a shared location. My understanding is that I will provide a UI to select the location. (I've also read an article that says the key needs to be saved manually beforehand to a network location.. not sure which is correct).
1. How do I tell the code to save the key to that specific location? StoreKeys EFile option is set (based on my reading) based on the OS version.
2. Talking to Soraco Support, was instructed to use ReadGlobalKey to retrieve the key. I cannot find this in the API.
-
Official comment
Hi Tracy
Solution 3 of the article you mentioned does not require generic keys.
1. StoreKeys cannot be used in this context. You need to store the key yourself using standard APIs.
2. ReadGlobalKey is a function in the sample located in the following folder:
C:\Users\Public\Documents\Quick License Manager\Samples\qlmpro\Windows\DotNet\C#\QlmControlSampleAutoActivation
You will find this function in YourAppFrm.cs.
Comment actions -
What do you mean store the key using standard APIs?
That folder is for C# - are you saying I need to rewrite that function for VBA?
So then do we need to create the key in QLM, export it, save it to a shared location, hardcode said location then use ReadGlobalKey somewhere in the code, instead of checking the QLM Server.
*edit* ok, I think I'm beginning to understand - I had a terminology issue. Though, I am still confused by your reference to "standard" APIs... are you referring to something in QLM or just general coding.
This is my current understanding: The activation key should be stored (manually to a network share - a text file or a database). The code first checks to see if the system already has an active license (not the same as the global activation key? terminology is a bit confusing); if none is found, then it reads the activation key and activates it, then storing the license for the system (locally).
Please sign in to leave a comment.
Comments
3 comments