Сравнивайте с английским: нажмите на абзац — оригинал откроется в окне. Кнопка EN под абзацем показывает его прямо в тексте.
Содержание
Введение
Формат архивного файла, разработанный для Microsoft Windows.
Archive file format created for Microsoft Windows
Cabinet (или CAB) — это формат архивного файла для Microsoft Windows, поддерживающий сжатие данных без потерь и встроенные цифровые сертификаты, используемые для обеспечения целостности архива. Файлы Cabinet имеют расширение .cab и идентифицируются по первым четырем байтам (также известным как "магическое число") MSCF. Изначально файлы Cabinet назывались Diamond.
Cabinet (or CAB) is an archive file format for Microsoft Windows that supports lossless data compression and embedded digital certificates used for maintaining archive integrity. Cabinet files have cab filename extensions and are recognized by their first four bytes (also called their magic number) MSCF. Cabinet files were known originally as Diamond files.
Реализация
Microsoft Windows поддерживает создание архивных файлов CAB с помощью утилиты командной строки makecab. Он также поддерживает извлечение содержимого файлов архива CAB с помощью проводника Windows, API настройки и команд expand.exe, extract.exe и extrac32.exe. Другие известные программы с поддержкой архивов CAB включают WinZip, WinRAR или 7-Zip. Cabextract – распространенный инструмент для систем Linux, но предназначен только для извлечения архивов. Однако gcab позволяет как извлекать, так и создавать архивы CAB. Полный список смотрите .
Microsoft Windows supports creating CAB archive files using the makecab command line utility. It supports extracting the contents of a CAB archive files using File Explorer, Setup API, and using the command line commands expand. exe, extract. exe and extrac32. exe. Other well known software with CAB archive support includes WinZip, WinRAR or 7 Zip. The aforementioned cabextract is a common tool for Linux systems, but is only capable of extracting archives. The gcab tool however can both extract and create CAB archives. For a full list, see .
Применение
Различные технологии установки Microsoft используют формат CAB: это Windows Installer, Setup API, Device Installer, Theme Pack и AdvPack (используемый Internet Explorer для установки компонентов ActiveX). Файлы CAB также часто связаны с самораспаковывающимися программами, такими как IExpress, где исполняемый файл извлекает связанный файл CAB. Файлы CAB также иногда встраиваются в другие файлы. Например, файлы MSI и MSU обычно включают один или несколько встроенных файлов CAB. Windows использует формат cabinet для архивирования журнала обслуживания на основе компонентов (CBS), который хранится в папке. Ошибка в процессе сжатия может привести к бесконтрольной генерации бесполезных файлов журнала как в этой папке, так и в , что может потреблять дисковое пространство до полного заполнения жесткого диска. Удаление файлов без соблюдения определенной процедуры может привести к их повреждению и потере данных, хранящихся в энергонезависимой памяти.
A variety of Microsoft installation technologies use the CAB format: these include Windows Installer, Setup API, Device Installer, Theme Pack and AdvPack (used by Internet Explorer to install ActiveX components). CAB files are also often associated with self extracting programs like IExpress where the executable program extracts the associated CAB file. CAB files are also sometimes embedded into other files. For example, MSI and MSU files usually include one or more embedded CAB files. Windows uses the cabinet format to archive its Component Based Servicing (CBS) log, which is kept in the folder A bug in the compression process can cause run away generation of useless log files both in that folder and in , which can consume disk storage until completely filling the hard drive. Deletion of the files without following a specific procedure that can be flashed on non volatile memory.
Связанные форматы
Расширение имени файла .cab также используется другими программами установки (например, InstallShield) для их собственных запатентованных форматов архивирования. InstallShield использует zlib для сжатия (см. Deflate), но их заголовки отличаются от заголовков файлов Microsoft CAB, поэтому они несовместимы и не могут быть обработаны или отредактированы программами, предназначенными для стандартного формата cabinet. Специализированные сторонние утилиты, такие как Unshield, могут извлекать этот конкретный запатентованный формат. Этот формат имеет другой магический номер. Установщик Windows CE использует вариант формата Microsoft CAB с собственным магическим номером. Microsoft Publisher имеет функцию "Pack and Go", которая объединяет документ Publisher вместе со всеми внешними ссылками в файл CAB с расширением .PUZ. Эти файлы предназначены для активации с помощью сопутствующего EXE-файла, который распространяется вместе с файлом .PUZ. Эти файлы могут быть открыты любой программой для извлечения файлов CAB.
The cab filename extension is also used by other installer programs (e. g. InstallShield) for their own proprietary archiving formats. InstallShield uses zlib for compression (see Deflate), but their headers are not the same as for Microsoft CAB files so they are incompatible and cannot be manipulated or edited with the programs that are made for standard cabinet format. Specialized third party utilities, such as Unshield, can extract this specific proprietary format. This format has a different magic number of
Windows CE installer uses a variant of Microsoft CAB format with a magic. Microsoft Publisher has a "Pack and Go" feature that bundles a publisher document, together with all external links, into a CAB file with a PUZ extension. These files are meant to be activated with a companion EXE file which is distributed along with the PUZ file. These files may be opened with any CAB file extraction program.