看板 ott
作者 ott (寶貝)
標題 What Is a Cabinet (.cab) File?
時間 2013年01月14日 Mon. AM 03:43:26


       
     
   
 

http://technet.microsoft.com/en-us/library/dd361921.aspx

What Is a Cabinet (.cab) File?

A cabinet (.cab) file is a library of compressed files stored as a single file. Cabinet files are used to organize installation files that are copied to the user's system. A large compressed file can be spread over several .cab files.

For a number of years, Microsoft has used .cab files to compress software that was distributed on disks. Originally, these files were used to minimize the number of floppy disks shipped with a product. Today, .cab files are used to reduce the file size and the associated download time for Web content that is found on the Internet or on corporate intranet servers.

One file in the cabinet is typically an information (.inf) file, which provides further installation information. The .inf file may refer to files in the .cab as well as to files at other URLs.

The IEAK contains a set of tools that help you build cabinet files and work with IExpress technology.

The Cabinet Format

Each file compressed in a .cab file is stored completely within a single folder. A .cab file may contain one or more folders or portions of a folder. So, even if a compressed file does not fit in one .cab file, it is placed in one folder that spans multiple .cab files. Such a series of .cab files form a set. Each .cab file contains name information for the logically adjacent .cab files.

The .cab format used for downloading Internet Explorer components from the Internet is a non-proprietary format based on Lempel-Ziv compression.

 
Digital Signatures

A .cab file can be digitally signed like an ActiveX control. A digital signature provides accountability for software developers. The signature associates a software vendor's name with a given file. A signature can be applied to a .cab file using Authenticode technology.

You can use .cab files to create a better end-user experience, because multiple files are downloaded and then a single certificate is presented to the user. Information about this technology is available from the MSDN Online Web Workshop.

When you mark your control "safe for scripting," users know that a script on an HTML page cannot use your control to cause harm to their computers or to obtain information they have not supplied willingly.

When you mark your control "safe for initialization," users know that there is no way an HTML author can harm their computers by feeding your control invalid data when the page initializes it.







How to Extract Files from Microsoft Cabinets

Microsoft uses .CAB files for distribution of many products.

These are basically compressed archives and are called "Cabinet" files by Microsoft. At times it becomes necessary to reinstall some driver (SYS) or library (DLL) files from original disks because the ones on the computer have become corrupted or were inappropriately replaced by some software and the new files are causing problems. When this happens you have to extract the original file(s) from the cabinet files they were originally stored in.

It's well beyond the scope of the FILExt site to list all of the Microsoft distribution files and in which cabinet file they reside; but such lists are available on the Microsoft site in the support section. Search the knowledgebase there if you require this information.

Once you have the name of the file you require and the name of the cabinet file it resides in there are several ways you can proceed to extract that file...

1) Use an Archive Utility
This is probably the most painless way to extract the necessary file from a cabinet file. You can use a utility to open the archive and then simply highlight it and let the archive utility handle the decompression and placement of the file where you tell it. You might then see something like...


[圖]
 


Just select the particular file or files you require and click on the Extract button, then tell the utility where to put the extracted file. That's all there is to it.

2) Use the Windows XP System Configuration Utility
If you don't have and don't want to obtain an archive utility, Windows XP has a utility that will decompress files from within a cabinet file. It's called the System Configuration Utility. You can access it by...

Click on the Start Menu.

Click on the Run item.

Type msconfig (with no quotes) into the dialog box and click OK.

Click on the General Tab in the box that appears and press the Expand File button.

Fill in the fields with the name of the file to expand, the cabinet file it's in, and the location where you want the file.
Click on OK and Windows will do the expansion.












 
 

--
※ 作者: ott 時間: 2013-01-14 03:43:26
※ 編輯: ott 時間: 2013-01-14 04:04:24
※ 看板: ott 文章推薦值: 0 目前人氣: 0 累積人氣: 80 
分享網址: 複製 已複製
guest
x)推文 r)回覆 e)編輯 d)刪除 M)收藏 ^x)轉錄 同主題: =)首篇 [)上篇 ])下篇