If the ActiveX Control is used on client side (connecting to COM ports on client computer, not on server), it must be installed and licensed on client side.
Possibilities for installation:
MSI
The user can run the MSI file, which is provided by our setup. If you want, you can use also silent mode (no dialogs) and install the component without documentation/samples.
Run: msiexec /i TConnector_Setup.msi ADDLOCAL=FeatTConnector /qn
Optional: add parameter INSTALLDIR=C:\MyApplicationPath for installation into a specific directory.
CAB
MSIE supports automatic installation of ActiveX Controls – all you have to do is to specify the download URL to a CAB file setup in the codebase attribute of the TConnector object - here is an example.
<OBJECT classid="clsid:126C289A-607B-4251-BF31-1555A5951948" id="TC2"
CODEBASE="./ServerPathToCABFile/ TConnector2.CAB"
.. some more parameters...
</OBJECT>
If not installed, the TConnector2.CAB file is downloaded and executed by MSIE automatically (if security options allows).
A CAB file setup for TConnector is available on request. Please note that the CAB file contains only the TConnector DLLs without the VC++ Runtime (MSVCRT DLLs). If the VC++ Runtime DLLs are not present on the client system, the user (or Admin) has to run the Microsoft Visual C++ 2008 SP1 Redistributable Package (x86) separately: Download it from http://www.microsoft.com/downloads.
Licensing
Usually for web applications, you get one license key, which must be used for all clients.
Script
The license key must be applied programmatically to an instance of the TConnector object (LicenseMe function). This means you license in your program code on client side (e.g. in Javascript running in Browser or in VBScript running in browser). Possible for intranet applications.
LPK
An alternative (and recommended) way for web applications would be LPK licensing. On request you get an LPK file, which you have to store on the server. Then you add the following html object tag in your html code (on the page, where TConnector is used).
<OBJECT CLASSID="clsid:5220CB21-C88D-11cf-B347-00AA00A28331">
<PARAM NAME="LPKPath" VALUE="./ServerPathToLPK/TConnectorLicense.lpk">
</OBJECT>
This object is the built-in License Manager in MSIE. The parameter LPKPath must point to the download URL for the LPK file on your server. The license manager object reads the LPK file and licenses the TConnector object on the same page. The license is hidden to the users, ideal for internet usage, no licensing script must be executed. Note: LPK works with Mem: prefixed license keys only.