Microsoft Cabinet Archive

.cab · Archives

CAB (Cabinet) is Microsoft's archive format for software installation. You get .cab files mostly from the Microsoft Update Catalog (drivers and updates), inside Windows installers and update packages, from hardware vendors' driver downloads, and on old Windows and Office installation CDs. Unlike ZIP, CAB was never meant for sending files to people; it carries files that a Windows installer or the system itself unpacks.

History

Microsoft introduced the format in the mid-1990s; Windows 95 and Office of that time were already distributed in CAB files. It became the standard container of Windows Installer (MSI), Windows Update and driver packages, and in the past of ActiveX controls for Internet Explorer and installers for Windows CE devices. Even on Linux, firmware updates distributed through fwupd come as CAB files. Windows ships the tools for it to this day: makecab creates cabinets, expand and extrac32 unpack them.

How a CAB file works

  • Compression across file boundaries: files are compressed together in "folders" (blocks), which according to Microsoft significantly improves the ratio compared with compressing each file separately.
  • Methods: uncompressed, MSZIP (Deflate, as in ZIP), Quantum and LZX. LZX usually compresses best.
  • Sets of cabinets: large installations can be split into several CAB files, with one file continuing from one cabinet into the next.
  • Digital signature: CAB files can carry an Authenticode signature. Windows uses it to check that an update or driver really comes from Microsoft or the vendor.

Watch out for InstallShield CAB files (typically data1.cab next to setup.exe). They share the extension but are a different, proprietary format, and Windows tools do not open them. The open-source unshield is the usual tool for those.

How to open or install a CAB file

Windows: double-click opens the cabinet in File Explorer as a folder, and you can copy files out. In the command prompt, expand -F:* file.cab C:\target extracts everything. What you do next depends on the content:

  • A driver (contains .inf, .sys, .cat files): extract it to a folder, then in Device Manager choose "Update driver", "Browse my computer" and point to that folder.
  • A Windows update package: do not extract it. Install it as administrator with DISM /Online /Add-Package /PackagePath:file.cab.

macOS: The Unarchiver. Linux: cabextract file.cab, or 7z x. cabextract can also find cabinets embedded in self-extracting .exe files.

Common problems

"Cannot open file" or an empty CAB on Windows

Most often an InstallShield CAB, see above. Another cause is a single part of a multi-cabinet set; all parts must be in the same folder.

DISM error when installing a .cab update

The package is for a different Windows version or architecture (x64, ARM64), or it is a driver CAB, which DISM does not install this way. Check the package details in the Update Catalog.

Signature is not valid after repacking

A signature covers the exact file. Any repacked CAB, or a ZIP made from one, no longer carries Microsoft's or the vendor's signature. The individual files inside, such as signed drivers with their .cat catalog, keep their own signatures.

Converting CAB

Converting CAB to ZIP or 7z makes sense when you want to look at the content on a Mac, Linux, Chromebook or phone, or pass the files on to someone. Our converter extracts the cabinet (MSZIP, LZX and Quantum) and packs the files again unchanged. Keep in mind: the result is an ordinary archive, Windows will not install it as an update package, and the signature of the cabinet itself is gone. Split cabinet sets cannot be converted, because each uploaded file is processed on its own, and InstallShield CABs may fail. Limits: 100 MB per upload, 2 GB unpacked. We cannot create CAB files; on Windows use makecab for that.

CAB in brief
DeveloperMicrosoft
First releasemid-1990s (Windows 95, Office)
Typearchive for installation, compression across files; signature MSCF
Compressionnone, MSZIP (Deflate), Quantum, LZX
Windows toolsmakecab, expand, extrac32, DISM
MIME typeapplication/vnd.ms-cab-compressed
Typical usedrivers, Windows updates, MSI installers

More: Cabinet Files (Microsoft Learn), the expand command and cabextract for Linux and macOS.

We can convert CAB into

Archives

ZIP 7Z TARGZISOXZAPK ARJBR BZ BZ2CPIOJARLZLZ4LZMATBZ2TGZTXZTZSTWARXARXPIZZST