Compression

How to install CAB file on Windows 11

Use these easy steps to install or extract CAB files on Windows 11.

Install CAB file on Windows 11
  • On Windows 11, open Command Prompt and run the DISM Add-Package command to install a CAB file.
  • You can also install a CAB file using the Add-WindowsPackage command in PowerShell.

On Windows 11, it’s possible to install a .cab file using Command Prompt with the Deployment Image Servicing and Management (DISM) command-line tool and PowerShell commands. A CAB extension file refers to the cabinet archiving file format that can be used to store compressed files in a file library.

Typically, developers use cabinet files as part of the process to package apps files. For example, Microsoft sometimes uses the format to distribute standalone updates for Windows 11 and other packages.

If you happen to have a Windows 11 update in a CAB format, you can use Command Prompt or PowerShell to quickly install packages on a computer.

In this guide, you will learn the steps to install a cabinet file on Windows 11.

Install CAB file with Command Prompt on Windows 11

To install a “.cab” file with Command Prompt on Windows 11, use these steps:

  1. Open Start on Windows 11.

  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.

  3. Type the following command to install the CAB file with Command Prompt and press Enter:

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

    This example installs the update KB5012592 on Windows 11:

    dism /Online /Add-Package /PackagePath:"C:\Users\username\Downloads\Windows10.0-KB5012592-x64.cab"

    CAB install with Command Prompt

Once you complete the steps, the contents of the package will install on Windows 11. You may have to restart the device to complete the installation if this is an update.

Install CAB file with PowerShell on Windows 11

To install a “.cab” file with PowerShell commands, use these steps:

  1. Open Start on Windows 11.

  2. Search for PowerShell, right-click the top result, and select the Run as administrator option.

  3. Type the following command to install the CAB file on Windows 11 and press Enter:

    Add-WindowsPackage -Online -PackagePath "PATH\TO\CAB"

    This example installs the update KB5012592 on Windows 11:

    Add-WindowsPackage -Online -PackagePath "C:\Users\username\Downloads\windows10.0-KB5012592.cab"

    CAB install with PowerShell

After you complete the steps, the CAB file will install the contents on your computer.

Extract CAB file with File Explorer on Windows 11

Some developers may use this container as a method to compress a folder to distribute specific content. 

To extract a “.cab: file on Windows 11, use these steps:

  1. Open File Explorer.

  2. Open the folder with the cabinet file.

  3. Double-click the “.cab” file.

  4. Select all the contents (Ctrl + A keyboard shortcut).

  5. Right-click the selection and select the Extract option (Click the OK button in the warning).

    File Explorer extract CAB file

  6. Select the folder destination to extract the files.

  7. Click the Extract button.

After you complete the steps, you can use the files to apply an update, configure a driver, or install an application, depending on the contents of the cabinet file.

Install CAB file for driver update on Windows 11

If the driver package fails to install using Command Prompt or PowerShell, you might be able to extract the contents of the CAB file to install the driver manually.

To update a driver using a .cab file on Windows 11, use these steps:

  1. Open File Explorer.

  2. Open the folder with the cabinet file.

  3. Double-click the “.cab” file.

  4. Right-click the selection and select the Extract option (Click the OK button in the warning).

    File Explorer extract CAB file

  5. Right-click the selection and select the Extract option (Click the Yes button in the warning).

  6. Select the folder destination to extract the files.

  7. Click the Extract button.

  8. Open Start.

  9. Search for Device Manager and select the top result.

  10. Right-click the device and select the Update driver option.

    Device Manager update driver

  11. Click the “Browse my computer for drivers” option.

    Browse CAB driver files

  12. Click the Browse button.

    Device Manager install CAB driver

  13. Select the folder with extracted files from the CAB file.

  14. Click the OK button.

  15. Click the Next button.

  16. Click the Close button.

After you complete the steps, the driver files in the .cab container will install on Windows 11 to set up the component.