How to Install CAB file in Windows 11

|

|

This post provides an instructional guide on how to extract and install CAB (cabinet) files in Windows 11 using the Command Prompt, Windows PowerShell, and File Explorer. CAB files, typically used by developers for installer packages, store compressed files in a file library and are often used to distribute standalone updates and device drivers for…

This article describes extracting and installing a CAB file in Windows 11.

A cabinet (CAB) is a single file that stores compressed files in a file library, usually with a .cab extension. Developers can also use a cabinet file creation tool such as Cabarc.exe to make cabinet files with installer packages.

Microsoft and device manufacturers sometimes use CAB files to distribute standalone updates and device drivers for Windows and other software packages. In addition, the CAB format is also efficient because it allows users to package multiple compressed files across file boundaries, significantly improving the compression ratio.

If you receive a CAB file and want to learn how to install it in Windows 11, the steps below will help you.

How to extract and install CAB files in Windows 11

As mentioned above, A cabinet (CAB) is a single file that stores compressed files in a file library, usually with a .cab extension. 

Below is how to install it in Windows 11.

There are multiple ways to install CAB files in Windows. For example, one can use the Command Prompt, Windows PowerShell, and other deployment tools.

Install CAB file via Command Prompt

If you have a CAB file and you want to install it using the Command Prompt, use the steps below.

First, open the Command Prompt as administrator.

Then use the command format below:

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

Replace “COMPLETE PATH\TO\CAB FILE” with the complete path to the CAB file in a folder.

For example, I will run the commands below to install a downloaded CAB file in my Downloads folder.

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

After it’s installed, I should see a success message.

Install CAB files via PowerShell

Alternatively, one can use Windows PowerShell to install CAB files.

First, open Windows PowerShell as administrator.

Once the PowerShell app opens, use the command format below:

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

Replace “COMPLETE PATH\TO\CAB FILE” with the complete path to the CAB file in a folder.

The same CAB file in my Downloads folder can be installed using the commands below.

Add-WindowsPackage -Online -PackagePath "C:\Users\Richard\Downloads\Windows10.0-KB5018851-x64.cab"

An output message with success will be displayed.

Extract and Install CAB files via File Explorer

In some cases, you may receive device drivers in CAB file format. In this scenario, however, you may not want to install all the packages inside a CAB file since you want only a single driver package.

You can extract the content of the CAB file and then only install a particular driver for the device. To do that, open File Explorer.

Then, double-click the CAB file to open. Next, Right-click all the content in the CAB file, then select Extract.

windows 11 extract cab file in file explorer
Windows 11 extracts cab files in File Explorer

Choose a location to extract the content of the CAB file to, then click Extract.

windows 11 choose folder to extract cab file to
Windows 11 chooses a folder to extract the cab file to

You can then use Device Manager to install the drivers for the device. To learn how to install device drivers, read the post below.

How to install device drivers in Windows 11

That should do it!

Reference:

https://learn.microsoft.com/en-us/windows/win32/msi/cabinet-files

Conclusion:

This post showed you how to install CAB files in Windows 11. Please use the comment form below if you find any errors above or have something to add.

Like this:



Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.