How to Install CAB file in Windows 11

business 4068346 640
business 4068346 640

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 efficient because it allows users to package multiple compressed files across file boundaries, which significantly improves 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, 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.

Posted by
Richard W

I love computers; maybe way too much. What I learned I try to share at geekrewind.com.

Leave a Reply

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

%d bloggers like this: