Personalization Add Install CAB Context Menu in Windows 11

  • Staff
CAB_banner.png

A cabinet is a single file, usually with a .cab extension, that stores compressed files in a file library. The cabinet format is an efficient way to package multiple files because compression is performed across file boundaries, which significantly improves the compression ratio.

You can use the DISM /Add-Package command with Windows cabinet (.cab) files to install or remove updates, service packs, language packs, and to enable or disable Windows features.

This DISM command can be used to make installing a Windows Update CAB file easy with a single click in the CAB file context menu.

This tutorial will show you how to add Install to the context menu of .cab files for all users in Windows 10 and Windows 11.


If you have the .cab file extension type associated to open with a third party app (ex: 7Zip, WinZip, WinRAR, etc...) by default, the Install context menu item added from this tutorial will not show until you restore the default association for the .cab file type.


You must be signed in as an administrator to add, remove, and use the Install context menu for CAB files.

The context menu in this tutorial will not work to install Realtek HD audio drivers from a .cab file. For that, see: Install Realtek CAB file in Windows



EXAMPLE: Install CAB context menu

When you right click on a .cab file, you will need to click/tap on Show more options first, then click/tap on Install.


Show_more_options.png
Install_added_to_CAB_context_menu.png



Here's How:

1 Do step 2 (add) or step 3 (remove) below for what you would like to do.


2 To Add Install to Context Menu of CAB Files

A) Click/tap on the Download button below to download the file below, and go to step 4 below.​

Add_Install_to_cab_context_menu.reg


(Content of .reg file for reference)
Code:
Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\CABFolder\Shell\RunAs]

[HKEY_CLASSES_ROOT\CABFolder\Shell\RunAs]
@="Install"
"HasLUAShield"=""

[HKEY_CLASSES_ROOT\CABFolder\Shell\RunAs\Command]
@="cmd /k dism /online /add-package /packagepath:\"%1\""


3 To Remove Install from Context Menu of CAB Files

This is the default setting.


A) Click/tap on the Download button below to download the file below, and go to step 4 below.​

Remove_Install_from_cab_context_menu.reg


(Content of .reg file for reference)
Code:
Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\CABFolder\Shell\RunAs]

4 Save the .reg file to your desktop.

5 Double click/tap on the downloaded .reg file to merge it.

6 When prompted, click/tap on Run, Yes (UAC), Yes, and OK to approve the merge.

7 You can now delete the downloaded .reg file if you like.

If you used step 2 and still do not see Install in the context menu of .cab files, then:

1) Download and merge the .reg file for cab in the table of option two in the tutorial here (click on link) to restore the default association for .cab files.

2) Merge the .reg file here in step 2 again.




That's it,
Shawn Brink
 

Attachments

  • CAB.png
    CAB.png
    11.7 KB · Views: 7
  • Add_Install_to_cab_context_menu.reg
    862 bytes · Views: 6
  • Remove_Install_from_cab_context_menu.reg
    490 bytes · Views: 12
Last edited:

Wisewiz

Speaks Ancient Geek
Power User
VIP
Local time
8:20 PM
Posts
737
Location
Ontario, Canada
@Brink
Used this on two machines yesterday. I'm a slow typist, and not having to type the whole DISM command was a delightful experience. Thanks for doing this chore.

Dan
 

My Computers

System One System Two

  • Operating System
    11 Pro 21H2 (22000.318)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Lenovo ThinkCentre M920S SFF
    CPU
    i5-8400 @ 2.80MHz
    Motherboard
    Lenovo
    Memory
    16GB DDR4 @ 2666MHz
    Graphics Card(s)
    Intel HD 630 Graphics onboard
    Sound Card
    Realtek HD Audio
    Monitor(s) Displays
    LG E2442
    Screen Resolution
    1920x1080
    Hard Drives
    2 x Samsung 870 EVO SSD
    Case
    Lenovo SFF
    Keyboard
    Microsoft Wired 600
    Mouse
    LogiTech M510 wireless
    Internet Speed
    Fast (for satellite!)
    Browser
    Chrome
    Antivirus
    Malwarebytes Premium & Defender (working together beautifully!)
  • Operating System
    11 Pro 21H2 (22000.318)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Lenovo ThinkCentre M910S SFF
    CPU
    i7-7700 @ 3.60MHz
    Motherboard
    Lenovo
    Memory
    16GB DDR4 @ 2400MHz
    Graphics card(s)
    Intel HD 630 Graphics onboard
    Sound Card
    Realtek High Definition Audio onboard
    Monitor(s) Displays
    LG FULL HD (1920x1080@59Hz)
    Screen Resolution
    1920 x 1080
    Hard Drives
    2 x Samsung 870 EVO SSD
    Mouse
    LogiTech M510 wireless
    Keyboard
    Microsoft 600 wired
    Internet Speed
    Fast (for satellite!)
    Browser
    Chrome
    Antivirus
    Malwarebytes Premium and MS Defender
Top Bottom