My control is self-written. Now I need to make it into a. Cab package so that it can be automatically downloaded and registered on the client. I only know how to use the cabarc.exe tool. But I don't know how to write the INF file and how to add the certificate.
ActiveX release steps:
Create a PVK file [private key file]
Makecert-SK digitaltitan. PVK
Makecert-N Cn = Telstar
Create a CER file [company certificate]
Makecert-SK digitaltitan. PVK Telstar. Cer
Create SPC test software publisher Certificate
Cert2spc root. Cer Telstar. Cer Telstar. SPC
Create an INF file
[Version]
Signature = "$ China $"
Advancedinf = 2.0
[Add. Code]
Weboffice. ocx = weboffice. ocx
Mfc70.dll = mfc70.dll
Msvcrt. dll = msvcrt. dll
Olepro32.dll = olepro32.dll
[Mfc70.dll]
File-win32-x86 = thiscab
Fileversion = 7,0, 9466,0
Destdir = 11
Registerserver = Yes
[Msvcrt. dll]
File-win32-x86 = thiscab
Fileversion = 6, 1, 9844,0
Destdir = 11
Registerserver = Yes
[Olepro32.dll]
File-win32-x86 = thiscab
Fileversion = 5, 0, 4522,0
Destdir = 11
Registerserver = Yes
[Weboffice. ocx]
File-win32-x86 = http: // 10.70.151.253: 9003/ActiveX/weboffice. Cab
CLSID = {05430ec0-69ca-437a-b1f9-4b78b8647bea}
Fileversion =
Registerserver = Yes
Create a cab file
Cabarc-s 6144 n weboffice. Cab mfc70.dll msvcrt. dll olepro32.dll asycfilt. dll stdole2.tlb weboffice. ocx weboffice. inf
Use code signing Wizard to sign a cab file
Signcode.exe
In addition:
Makecert-SK digitaltitankey-n "cn = Telstar"-SS Telstar. Cer
Makecert-Is Telstar-ic Telstar. cer-SS telstarcompany. Cer
Cert2spc mycert. Cer mycert. SPC
ActiveX publishing tool
Packaging Toolkit:
Apply for a certificate: Win2000: Control Panel-Administrative Tools-Certificate Authority [update components if not available] http: // 127.0.0.1/certsrv/
Signature kit: http://download.microsoft.com/download/ B /e/f/bef2551b-401d-4311-ab8f-13d3892b8154/codesigningx86.exe