Start-> All Programs->microsoft Visual studio2010-> Visual Studio tools->visual Studio command Prompt (2010) (Open with Administrator privileges)
1) CABARC will be OCX, DLL packaged into a CAB file
Eg. Cabarc-s 6144 n demo.cab atl90.dllPolygon.dll demo.inf
2) INF file writing
[Version]
Signature= "$CHICAGO $"
advancedinf=2.0
[Add.Code]
Activexdemo1.ocx=activexdemo1.ocx
[Activexdemo1.ocx]
File-win32-x86=thiscab
clsid={a8533fab-72a3-43e1-9b84-d95321f4a143}
fileversion=1,0,0,0
destdir=11
Registerserver=yes
3) Makecer production of certificate documents
Eg.makecert-n "Cn=root"-r-svrootissuer.pvk rootissuer.cer
4) signcode to file digital signature
Eg.signcode
Follow the steps.
Add CAB File
Add CER certificate
Add encryption Key
......
5) ActiveX Plugin installation upgrade
<object codebase= "http://localhost/baidu_edit.cab#version=1,1" classid= CLSID: a8533fab-72a3-43e1-9b84-d95321f4a143 ".../>
A) First will determine whether the system has classid for XXXX, if not, then prompts the user to download and install:
b If the plugin is already installed in the system, it will be compared with the # version number and the installed Plug-ins, and if higher, download the newer version of the software automatically.