License Environment Variables |
Previous Top Next |
· | Visual Basic users must use SetEnvironmentVariable and GetEnvironmentVariable not GetEnv/SetEnv |
· | Most keys are read only, if you change the environment variable value it will have no effect. The exceptions are TS_CURRENT_KEY and TS_KEYDATA_00 through TS_KEYDATA_99 |
Format is interger >= 0 |
If current license key has no maximum day usage limit this environment variable is set to NULL (no value) |
Format is interger >= 0 |
This value is always set, even if the current key has no restrictions on the maximum number of days |
If you wish to display your own license dialog, you should check to make sure this value is <=TS_MAXDAYS |
Format is interger >= 0 |
This value is set only if TS_MAXDAYS or TS_EXPDATE are set, if the current key has no relative or absolute time limit this value is NULL (no value) |
Because you can set absolute and relative time limits in the same license key, this value will be set to the maximum number of days before the current key expires. |
For example if has 5 days remaining for 30-day trial, and you have also placed an abolsute date limit of 2004-01-01 where today (2003-12-31), the value of TS_DAYSLEFT |
will be 1 because only one day remains in the second limitation. The number of days left will also include time-additions from previous keys. See (When Thinstall adds |
key times). |
Format is interger >= 1 |
This value is always set, even if the current key has no restrictions on the maximum number of runs. |
If you wish to display your own license dialog, you should check to make sure this value is <=TS_MAXRUNS |
This variable is useful for passing additional information to your program from the key generator. For example: |
· | Can be used to enable or disable specific features inside your program. Your program can check for specific strings in the TS_LICINFO variable before allowing the user to preform various options. |
· | Can be used to embed the name of the License owner. Your program can display the name of the License Owner inside the program. This helps to discourage users from improperly sharing their license code. |
If current license key has no embedded license information, this environment variable is set to NULL (no value) |
Format is interger >= 0 |
If current license key has no Maximum runs limit this environment variable is set to NULL (no value) |
Format is a 16 character string |
If current license key has no required machine ID this environment variable is set to NULL (no value) |
Format is a 16 character string |
This value is always set. |
If you wish to display your own license dialog, you should check to make sure this value matches TS_MACID_REQ |
Format is YYYY-MM-DD (MM and DD are always 2 digits) |
If current license has no Absolute Expiration date, this environment variable is set to NULL (no value) |
Format is YYYY-MM-DD (MM and DD are always 2 digits) |
This value will always be set. |
This value only changes if a new license key is entered. |
If a license key is entered which was previously used, the old TS_FIRSTRUN date is used for that key. |
This value is set to "1" if the current license has expired for any reason (time restriction, machine ID doesn't match, forced expiration, etc) |
If the current license key has not expired this environment variable is set to NULL (no value) |
Note: this value will never be set if Thinstall's GUI is used to display the license dialogs because the user will never run your program unlicensed. |