CAB file - Add Install to Context Menu in Windows 10  

Page 1 of 4 123 ... LastLast
    CAB file - Add Install to Context Menu in Windows 10

    CAB file - Add Install to Context Menu in Windows 10

    How to Add or Remove Install CAB Context Menu in Windows 10
    Published by Category: Customization
    21 Nov 2021
    Designer Media Ltd



    How to Add or Remove Install CAB Context Menu in Windows 10


    A cabinet is a single file, usually with a .cab extension, that stores compressed files in a file library. Some Windows 10 updates are redistributed in the .cab archive format.

    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 .cab updates (ex: KB3197356) easy with a single click in its context menu.

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

    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 be able to add, remove, and use the Install context menu.

    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 10

    Usage of "Install" .cab context menu:

    1) Right click or press and hold on a .cab file (ex: KB3197356).

    2) Click/tap on Install in context menu.

    3) Click/tap on Yes in UAC prompt to approve.
    CAB file - Add Install to Context Menu in Windows 10-uac.png

    4) When the operation has completed successfully, you may need to type Y in the command prompt to restart the computer to finish installing.
    CAB file - Add Install to Context Menu in Windows 10-cab_dism_command_prompt.png


    EXAMPLE: Install CAB context menu
    CAB file - Add Install to Context Menu in Windows 10-ca_install_context_menu.jpg


    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

    Download

    (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

    Download

    (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





  1. Posts : 12,856
    Win10 Version 21H2 Pro and Home, Win11 Pro and Home
       #1

    Step 2 does not work for me, even after rebooting.
      My Computers


  2. Posts : 63,400
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #2

    Hello Berton, :)

    What doesn't work for you?

    Is it not adding "Install" to the context menu of .cab files for you?
      My Computers


  3. Posts : 12,856
    Win10 Version 21H2 Pro and Home, Win11 Pro and Home
       #3

    No, the Install and Merge don't add it and I guess I don't have a firm grip on the line 1) Right click or press and hold on downloaded .cab file (ex: KB3197356).
      My Computers


  4. Posts : 63,400
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #4

    Ah, ok. That was just an example.

    Merging the .reg file in step 2 should have added "Install" to the context menu of .cab files for you.

    As a test, you could just rename a new .txt file's extension to .cab to see if "Install" is added or not.
      My Computers


  5. Posts : 12,856
    Win10 Version 21H2 Pro and Home, Win11 Pro and Home
       #5

    Working through this showed me that somewhere in the last couple of updates I lost my Microsoft Account, just had to work through setting up a new one during the last 30 minutes, what a pain. Maybe Microsoft decided to finally start getting rid of Hotmail.com accounts? Had to create one in Outlook.com to get it to work.

    No, renaming any file doesn't bring up the Install. It wasn't the KB number I had the issue with, just the statement of 1) Right click or press and hold on downloaded .cab file.

    EDIT: I just compared the .reg file with the entries in the Registry and the first one of HasLUAShield is in RunAs but the entry in Command isn't there.
      My Computers


  6. Posts : 63,400
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #6

    It sounds like the .reg file may not have successfully merged completely. Try downloading a new copy and merge it again to see if it may merge.
      My Computers


  7. Posts : 12,856
    Win10 Version 21H2 Pro and Home, Win11 Pro and Home
       #7

    I ran the Remove first then ran the Add Install .reg file.
    This is what I get in the download:

    Windows Registry Editor Version 5.00

    ; Created by: Shawn Brink
    ; Created on: October 6th 2016
    ; Tutorial: CAB file - Add Install to Context Menu in Windows 10 - Windows 10 Forums


    [-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""
    On the RunAs entry the "HasLUAShield"="" part is on the line below (Default) and on the Command entry the other/long line is on the (Default), no other lines below it.
    Attachment 107438

    That whole section:Attachment 107439
      My Computers


  8. Posts : 63,400
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #8

    That looks correct for the registry. Do you have "Install" in the context menu of .cab files now?
      My Computers


  9. Posts : 12,856
    Win10 Version 21H2 Pro and Home, Win11 Pro and Home
       #9

    No, not showing up. Guess I can wait to get the update. My concern now is if this modification doesn't work what else may not work, especially when installing programs.
    Last edited by Brink; 12 Mar 2020 at 09:18. Reason: removed broken attachment
      My Computers


 

Tutorial Categories

CAB file - Add Install to Context Menu in Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 07:45.
Find Us




Windows 10 Forums