Writing packaged cab with VS2010 tools

Source: Internet
Author: User

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.

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.