The problem of ActiveX Control making into a cab package

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.