How to Install a CAB File on Windows 11 (Step by Step)

A CAB file is not a normal installer, so double-clicking usually will not install it. This guide shows the DISM command that does, when to extract instead, and what differs on Windows 10.

Windows 11 File Explorer showing many selected package files in a Downloads folder with a right-click menu and arrow pointing to Extract.
In this article

Yes, but not by double-clicking. To install a CAB file on Windows 11, you use a command-line tool such as DISM, run from an elevated prompt (Command Prompt opened as administrator). [1] PowerShell is the other tool named for the job. [1]

Double-clicking a CAB usually just lets you extract its contents, not install them. [1] So the path you pick depends on your goal: install an update or package, or only pull files out of the archive.

This article explains what a CAB file is, shows the DISM command for installing one, and covers when extracting is the better choice. The core command looks like this: [2]

dism /Online /Add-Package /PackagePath:"PATH\TO\CAB"

What is a CAB file and what should you know first?

A CAB file (cabinet file) is a compressed archive that packs several files into one. Windows uses the format to package software distributions and updates, including drivers and system files. [3] Developers also use it to build program installers, and Microsoft occasionally uses it to deliver stand-alone Windows updates. [4]

That packing is why CAB files are handy for downloads: one file can carry many compressed files, which suits distribution over the internet or inside a company network. [3]

Know what you have before you start

Before doing anything, work out where the file came from and what it is. A CAB file is typically one of three things:

  • An update, such as a cumulative update for a specific KB number. [5]

  • A package, such as a program installer or a set of system components. [4]

  • A driver for a piece of hardware. [4]

A file you downloaded from Microsoft’s own update catalog is a different case from one that arrived in an email attachment. The type matters because it decides whether you install the file or just open it and pull files out, which the next sections cover.

Use an administrator prompt

Installing a CAB file usually requires administrative privileges, especially for system-level updates or driver installs. [3] So you will run Command Prompt or PowerShell as administrator. In Windows 11, search for Command Prompt in the Start menu and choose Run as administrator. [4]

The update walkthroughs also suggest right-clicking the Windows icon to open an admin prompt. [5]

A note for Windows 10 readers

The CAB basics above apply to both versions, but Windows 11 is the safer place to be running them.

A computer monitor displays a file explorer window with a folder of compressed update files in a tidy office setting.

How do you install a CAB file with DISM?

Installing a CAB file with DISM takes one command in an elevated Command Prompt. Follow these steps in order.

  1. Open Command Prompt as administrator. Click Start, type cmd, right-click Command Prompt, and choose Run as administrator. Approve the User Account Control prompt.

  2. Run the DISM command with your real path. Replace the placeholder with the full location of your file. If the file is update.cab in your Downloads folder, the path would be C:\Users\YourName\Downloads\update.cab.

dism /Online /Add-Package /PackagePath:"PATH\TO\CAB"

[2] The command works on the running copy of Windows (/Online), adds a package (/Add-Package), and points to your file (/PackagePath). Keep the quotation marks, which protect paths that contain spaces.

  1. Wait for it to finish, and restart if prompted. DISM shows progress in the window. When it reports that the operation completed successfully, restart Windows if the message asks for it.

A command-line tool such as DISM or PowerShell is required for a real install, because double-clicking may only let you extract the contents. [1]

Before you run it

Back up important files or create a restore point first. Installing a package changes Windows itself, so a backup gives you a way back if something goes wrong.

Windows 10 and 11

The DISM steps are the same on Windows 10 and Windows 11. Windows 10 is out of support, so it no longer receives regular updates from Microsoft.

When should you extract a CAB file instead?

Extract a CAB file when you want the files inside it, not a system-level install. This is the right choice for a driver package, or when you only need one or two files from the archive. To go further, see How to Install a Driver From a CAB File in Windows.

Double-click to open and copy files out

Double-clicking a CAB file may let you extract its contents rather than install anything. [1] In File Explorer, the CAB opens like a folder, so you can select the files you need and copy them to another location. Windows File Explorer is one of the tools that can extract CAB contents, along with WinZip and WinRAR. [3]

For example, if a vendor sends you a CAB with a few configuration files, opening it and copying them out is all you need. No command-line tool is involved.

Driver CABs: extract first, then install

A CAB file can package drivers and system files. [3] For a driver, the usual route is to extract the CAB, then point Device Manager at the extracted folder to install the driver. Keep the extracted folder somewhere you can find it, because Device Manager will ask you to browse to it.

Installing drivers often requires administrative privileges. [3] If Windows prompts you for approval, accept it with an administrator account.

Extract to a new folder

Always extract into a new, empty folder you create yourself, such as a folder named DriverCab on your Desktop or in Documents. Avoid extracting straight into system folders like C:\Windows. A fresh folder keeps the files together, makes it easy to see what the CAB contained, and lets you delete the whole set if you change your mind.

Once the files are out, you can browse them, copy what you need, or hand the folder to Device Manager for a driver.

What about cumulative updates in CAB or MSU form?

Yes, Microsoft publishes cumulative updates as CAB or MSU files, but for most people Windows Update is the easier way to get them. Cumulative updates carry security patches and incremental OS builds. [5]

Start with Windows Update

In most cases you install these updates by opening Windows Update and checking for updates. [5] It handles the download, the right version for your PC and the restart prompt, so there is little to get wrong.

When a manual install makes sense

Manual installation is a second route for when you want or need to do it yourself. Microsoft provides the CAB and MSU files, and you can download and install them by hand. [5] A typical case is an update you want to apply directly from a downloaded file rather than waiting for Windows Update to offer it.

For a CAB update, the walkthrough follows this order: [5]

  1. Download the CAB file that matches your system, x86 or x64.

  2. Rename it to the KB number, for example KB3176931.cab.

  3. Copy it to C:\.

  4. Open Command Prompt as administrator.

  5. Run the command below.

DISM.exe /Online /Add-Package /PackagePath:c:\KBnumber.cab

Replace KBnumber with your file’s actual name. /Online targets the running Windows, /Add-Package installs the package, and /PackagePath points to the file. [5] Your PC may restart when the installation finishes; if it doesn’t, restart it yourself. [5]

Where MSU files come from

MSU files are downloaded from the Microsoft Update Catalog. You search for the cumulative update, then pick the download that matches your system, such as x64 or x32. [5]

If Windows Update works for you, stick with it. Keep the manual CAB or MSU route for the times it doesn’t fit.

Common questions about installing CAB files

Why does double-clicking not install it?

A CAB file is a compressed archive, so Windows treats it like a folder of files rather than a setup program. Double-clicking may let you extract the contents, but it does not install anything. [1] To install, you need a command-line tool such as DISM or PowerShell. [1]

Is PowerShell an option besides DISM?

Yes. Both DISM and PowerShell are named as command-line tools that can install a CAB file. [1] Either way, open the window as administrator, because installing updates or drivers at the system level often requires administrative privileges. [3]

The exact PowerShell command is not shown in the material for this article. Look up the package cmdlet in Microsoft’s PowerShell documentation, or use the DISM command from the earlier step, which gives the same result.

What if the install fails?

Start with the basics: make sure your Command Prompt or PowerShell window is running as administrator. Missing privileges are a common stumbling block for system-level updates and drivers. [3]

Next, think about what kind of CAB you have. CAB files can package software, updates, drivers and system files, so a driver CAB will not behave like an update CAB. [3] If it holds driver files, extract it and install the driver another way instead of forcing a package install.

Also check that the path in your command points to the real file and is wrapped in quotation marks if it contains spaces. If the file came from an unclear source, download it again from the original publisher.

Which method should you use?

Match the method to what the CAB holds. If it is a Windows update or package, install it with DISM from an elevated prompt, because installing a CAB takes a command-line tool such as DISM or PowerShell. [1] If it is a driver or just a set of files, extract it and use the contents instead.

Your next step is to confirm what the CAB contains. For a package, run dism /Online /Add-Package /PackagePath:"PATH\TO\CAB" with your real path. [2] Back up your files or create a restore point first, since a package changes Windows.

Sources

  1. Complete Guide: How to Install a CAB File in Windows

  2. How to Install CAB File on Windows 11 [2024 Guide]

  3. How to Install .CAB

  4. How to Install CAB File In Windows 11 Quickly

  5. How to Install cumulative updates CAB/.msu Files on Windows 11/10