Tech News Today
  • News
  • How To
  • Buyer’s Guide
  • Hardware
    • PC Builds
    • Computer Cases
    • Motherboards
    • Peripherals
    • RAM
  • Gaming
  • Software
  • More
    • Mobile
    • Gadgets
    • Laptops
    • Reviews
Facebook Twitter Instagram
Tech News Today
  • News
  • How To
  • Buyer’s Guide
  • Hardware
    • PC Builds
    • Computer Cases
    • Motherboards
    • Peripherals
    • RAM
  • Gaming
  • Software
  • More
    • Mobile
    • Gadgets
    • Laptops
    • Reviews
Tech News Today
Home»Windows»How To Install CAB File For Updates And Drivers On Windows

How To Install CAB File For Updates And Drivers On Windows

AnupBy AnupApril 25, 2022
how to install cab file

As the name implies, a cabinet (CAB or .cab) file is like a container for storing other files (usually .inf, .dll , etc). Developers prefer this format of file packaging because of its excellent compression ratio.

On the user’s end, a CAB File is typically used to manually update a driver or install a system update when the usual methods such as Windows Update don’t work. As for how to do this, it’s very simple.

You can extract the CAB package and install it via Device Manager. Or, if you prefer the command line, you can use the DISM tool in CMD/Powershell. We’ve listed the necessary steps for all these and more in the guide below.

Table of Contents

  • How to Install CAB File Using DISM
    • Command Prompt
    • Powershell
  • How to Extract CAB Package and Install Manually
  • How to Install CAB File to an Offline Image?
  • How to Remove CAB Package from a Windows Image?
  • Related Questions
    • How to Update Drivers if DISM and Device Manager Don’t Work?
    • Why Is There No Install Option in My Right-Click Menu?
    • How to Fix DISM Error 2 “The System Cannot Find The File Specified”?

How to Install CAB File Using DISM

The DISM tool can be used to install a specified .cab or .msu package to a Windows image. You can do this via Powershell or Command Prompt as you prefer.

Note: The code listed below is for servicing online images. Attempting to add CAB packages to an offline image will return an error message along the lines of DISM does not support servicing windows with the /online option. For this purpose, check the offline section instead.

Command Prompt

Here’s how to install CAB files via cmd:

  1. Press Win + R, type cmd, and press CTRL + Shift + Enter.               
  2. Type the following command, replace the file path with the appropriate value, and press Enter:
    DISM /Online /Add-Package /PackagePath:"C:\Filepath.cab”
    add-package
  3. Press Y to restart if prompted to properly complete the update.

Powershell

Here’s how to install CAB files via powershell:

  1. Press Win + R, type powershell, and press CTRL + Shift + Enter. 
  2. Type the following command, replace the file path with the appropriate value, and press Enter:
    Add-WindowsPackage -Online -PackagePath "C:\Filepath.cab"
    powershell-add-windowspackage
  3. Restart the computer once the installation completes.

How to Extract CAB Package and Install Manually

If the command-line method doesn’t work, you can extract the CAB package’s contents and try to install the file manually. Right-click the extracted .inf file and select Install. If no such option is available, follow the steps listed below to update via Device Manager:

  1. Double-click the CAB file and select all the contents inside it.
  2. Right-click and select the Extract option.
    extract-cab-files
  3. Pick the destination to extract the files to and press the Extract button.
  4. Press Win + R, type devmgmt.msc, and press Enter.
  5. Right-click the driver you’re trying to update and select Update driver.
    update-disk-driver-device-manager
  6. When prompted, select Browse my computer for drivers.
    browse-my-computer-for-driver-software
  7. Click on Browse, then locate and select the extracted CAB folder from Step 3.
  8. Press OK > Next > Close.
Note: While updating certain driver updates, you may encounter an error message with the code 0x80070002 or similar. This is fairly common with the Realtek HD Audio Driver, for instance. Even if the error code is different, searching about it online will help you find solutions for that specific error.

How to Install CAB File to an Offline Image?

Sometimes you’ll need to install a CAB file to an offline image, and an MSU package is only supported on offline images, to begin with. For such cases, here’s how to install CAB files to an offline image:

  1. Press Win + R, type cmd, and press CTRL + Shift + Enter.
  2. Type or copy the following command:
    Dism /Image:C:\test\offline /Add-Package /PackagePath:C:\test\packages\package.cab
    add-package-dism-offline
  3. Here, replace the image path and package path with the appropriate values as indicated in the picture above, then press Enter to execute the command.
  4. If you wish to install multiple packages at once, simply add the additional packages as shown below:
    Dism /Image:C:\test\offline /Add-Package /PackagePath:C:\packages\package1.cab /PackagePath:C:\packages\package2.cab and so on.
  5. They will be installed in the order listed on the command line.

How to Remove CAB Package from a Windows Image?

You can use either the PackageName or PackagePath switches in conjunction with the Remove-Package command to remove the specified .cab package from an image. Make note that this command doesn’t work for .msu packages. With that said, here are the necessary steps:

  1. Open an elevated command prompt window and use the following commands as appropriate.
  2. To list the packages in an online image:
    Dism /Online /Get-Packages
  3. To list the packages in an offline image:
    Dism /Image:C:\test\offline /Get-Packages
    get-packages-offline
  4. To remove a CAB package using the PackageName option:
    Dism /Image:C:\test\offline /LogPath:C:\test\RemovePackage.log /Remove-Package /PackageName:Microsoft.Windows.Calc.Demo~6595b6144ccf1df~x86~en~1.0.0.0
    remove-package-package-name
  5. To remove a CAB package using the PackagePath option:
    Dism /Image:C:\test\offline /LogPath:C:\test\RemovePackage.log /Remove-Package /PackagePath:C:\packages\package1.cab /PackagePath:C:\packages\package2.cab
Note: In the commands listed above, don’t forget to replace the package name, original source, and offline image path as appropriate for the particular package you’re trying to remove.

Related Questions

How to Update Drivers if DISM and Device Manager Don’t Work?

Many users have reported DISM not working properly on specific versions of Windows (E.g. 1809). So the first thing you could try is to update to the latest version or roll back to a previous stable build, then try to update the drivers.

The second method is that you could download the driver or a driver manager from the manufacturer’s official site and install it directly. Many users have installed Intel Chipset Drivers using the same method when they were unable to update the drivers normally.

Why Is There No Install Option in My Right-Click Menu?

A lot of users think that they don’t have the install option because of a bug or a virus, but that’s a misconception. By default, there’s actually no install option in the contextual menu. It’s a feature you have to add manually by editing the registry.

If you wish to do so, we recommend backing up your registry first. Then, you can find the necessary steps and .reg files at Ten Forums.

How to Fix DISM Error 2 “The System Cannot Find The File Specified”?

First, make sure you launched CMD or Powershell with admin privileges. Next, check the file path and ensure it is correct. Users often forget about the double-quotes outside the file path, or the .cab extension at the end, so check these as well.

If everything seems good, it’s possible that this specific file is simply corrupt. In cases like this, the issue is usually patched soon, so you just need to wait for the next hotfix.

how-to
Anup

I used to be a travel writer. Then I took an arrow in the knee.

Related Posts

change drive letter windows 10 11

How To Change A Drive Letter On Windows 10 Or 11

June 8, 2022
how to retrieve google backup photos

How to Retrieve Google Backup Photos

June 8, 2022
disable touch screen windows 11

How to Disable the Touchscreen on Windows 11?

June 8, 2022
enable virtualization windows 11

How to Enable Virtualization on Windows 11

June 7, 2022
how-to-open-file-location-on-windows-11-1

How to Open File Location on Windows 11

June 7, 2022
hibernate windows 11

How to Enable Hibernate in Windows 11?

June 7, 2022
Add A Comment

Leave A Reply Cancel Reply

Latest Posts
fighting-games

11 Best Fighting Games on Steam

June 8, 2022
what-is-the-blue-circle-on-my-samsung

What Is the Blue Circle on My Samsung

June 8, 2022
should-i-use-wd-discovery

What Is WD Discovery? Should I Use It?

June 8, 2022
You may also like
how-to-clear-other-storage-on-iphone

How to Clear Other Storage on iPhone?

June 8, 2022
change drive letter windows 10 11

How To Change A Drive Letter On Windows 10 Or 11

June 8, 2022
how to reset imac without password

How to Reset iMac Without Password

June 8, 2022
Recommended
Cookie Clicker Garden Guide

Cookie Clicker Garden Guide to Unlocking Every Seed

September 26, 2021
monitor no signal

Computer Turns On But Monitor Says No Signal (9 Ways To Fix)

October 25, 2021
Facebook Twitter Pinterest
  • Home
  • About Us
  • Privacy Policy
  • Affiliate Disclosure
© 2022 TechNewsToday.

Type above and press Enter to search. Press Esc to cancel.