How to make a cab package when downloading controls from a Web page

Source: Internet
Author: User
Tags ini
The Internet Software Distribution Unit is a package that consists of a CAB file (. cab) that contains an. inf file or software distribution (. osd) file (or both). A distribution unit can also contain software components, such as ActiveX controls (. ocx),. dll files,. exe files, Java class files, or applets. When the CODEBASE attribute of an OBJECT element on a Web page references a CAB file that contains an. inf file, the Internet Explorer 3.0 and later versions automatically use the CAB file as the software distribution unit.
First step: Create an INF file:
INF file is a text file that specifies the files (such as DLLs or other OCX) that need to be downloaded or submitted to run the control.
An INF file bundles all the necessary files for the cab cabinet file.
By default,
Files with the same file version number on an existing hard disk are not downloaded.
To learn more about the INF file and its options, including how to create a platform-independent INF file,
Refer to the setup and System management services for the Platform Software Development Kit (Platform SDK) (Setup and Systems Management service)
section of the Setup Apioverviewinf files directory.
Here's an example of a videoweb.dll I wrote myself. Used in Videoweb.dll: Tdiio.dll,encoder.dll,decoder.dll,tdiio.ini,user.ini,
Camer.ini,drivo.ini.
Examples of Video.inf:
; INF file for Videoweb.dll
[Version]
Signature= $CHICAGO $
[DestinationDirs]
dllsyscopy=11
Iniwincopy=25
[DefaultInstall]
Copyfiles=dllsyscopy,iniwincopy
Addreg=videoreg
[Dllsyscopy]
Tdiio.dll
Decoder.dll
VideoWeb.dll
[Iniwincopy]
Camer.ini
User.ini
Xvidmp4.ini
[Videoreg]
HKCR,CLSID{4BDA0AA3-2164-44B7-8A88-208A145F51DC}, "",%reg_sz%, "video Class"
Hkcr,clsid{4bda0aa3-2164-44b7-8a88-208a145f51dc}control
Hkcr,clsid{4bda0aa3-2164-44b7-8a88-208a145f51dc}implemented Categories
Hkcr,clsid{4bda0aa3-2164-44b7-8a88-208a145f51dc}implemented CATEGORIES{7DD95801-9882-11CF-9FA9-00AA006C42C4}
Hkcr,clsid{4bda0aa3-2164-44b7-8a88-208a145f51dc}implemented CATEGORIES{7DD95802-9882-11CF-9FA9-00AA006C42C4}
Hkcr,clsid{4bda0aa3-2164-44b7-8a88-208a145f51dc}inprocserver32, "",%reg_sz%, "%11%videoweb.dll"
Hkcr,clsid{4bda0aa3-2164-44b7-8a88-208a145f51dc}inprocserver32, "ThreadingModel",%REG-SZ%, "Apartment"

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.