Installation on clients' machines
In case you would like to integrate Serial Port ActiveX Control into your own software, you will have to include sport.dll into your installation procedure.
To install it on client's machine do the following:
1. Copy sport.dll and regsp.exe into destination folder where your files are located.
2. Register it in an operating system by executing the command:
Regsp.exe sport.dll
Please, note that you must be located inside the directory where you have copied the file to or specify the full path to sport.dll file.
Once Serial Port ActiveX Control is registered on a target computer, you can use its properties and methods the same way as of any other ActiveX component.
To uninstall it do the following:
1. Unregister it by executing the following command:
Regsp.exe sport.dll /u
2. Remove sport.dll file.
Remember, that to be able to redistribute Serial Port ActiveX Component without any limitations you must own OEM license. Only OEM license grants you commercial royalty-free redistribution rights.
Quiet registration procedure (see below) is used to register on end-users' machines Serial Port ActiveX Control, incorporated into your software.
Quiet registration
To register on end-users' machines Serial Port ActiveX Control, incorporated into your software, include the following command into the code of your project:
regsp.exe sport.dll /i:"Name#code",
where "Name" is registration name and "code" is registration code.
For example:
regsp.exe sport.dll /i:"TEST TEST#xxxxx-W9FC5V-31AXAX-F884EC-WN7G92-X3VXEE-21CFEE-524E94-651198-2A84FA-663C11-xxxxxx"
Register it in an OS by executing the following command:
1. Regsp.exe sport.dll - for Win NT (2000, 2003, XP, Vista) only
2. regsvr32 sport.dll - for Win 9x
Redistribution in Internet Explorer
In order to redistribute Serial Port ActiveX Control on the web create a .CAB file.
.CAB file must contain Sport.dll, Sport.inf and SportReg.dll.
| Sport.dll | Serial Port ActiveX Control itself |
| Sport.inf | Installation scenario. Sport.inf sample is located in \examples\ASP\CAB\Sport.inf |
| SportReg.dll | Automatic registration of Serial Port ActiveX Control. \examples\ASP\CAB\SportReg\ |
SportReg.dll is a simple stub for ActiveX which purpose is solely to register Serial Port ActiveX Control.
The source code for given DLL can be found in \Examples\Web scripting\CAB\SportReg folder.
In order to register Serial Port ActiveX, please, replace "Name" and "0000WJ-222222-00000-QZ04AH-D0DHQP-00000-D5A933-111111-121111-EEEEEE-8D8EFF-000000" values in SportReg.cpp with your registration data.
Newly compiled SportReg.dll should be placed in a CAB file.
Once the steps above are successfully completed, IE will install and register our ActiveX automatically.
For more information about redistribution in IE please read MSDN page.