Advertisement

Context menu to install CAB updates in Windows 10

Many users find it hard to install updates from the command line which come in the form of CAB files. They prefer a context menu to install *.cab updates directly with one click. It is easy to achieve this with a simple Registry tweak Here is how it can be done.

Advertisеment


Some Windows 10 updates are redistributed in the CAB archive format. For example, cumulative updates released for Windows 10 are CAB files. The recently released Windows 10 build 14393.3 is a good example (see the direct links section).

To add an "Install" command to the context menu of CAB files in Windows 10, you need to do the following.

  1. Open Registry Editor.
  2. Go to the following Registry key:
    HKEY_CLASSES_ROOT\CABFolder\Shell

    Tip: You can access any desired Registry key with one click.

  3. Create a new subkey here named "runas". You will get
    HKEY_CLASSES_ROOT\CABFolder\shell\runas

    Windows 10 install cab create key 1

  4. Under the runas subkey, set the (Default) value's data to "Install this update":Windows 10 install cab runas default parameter name
  5. Under the runas subkey, create a new string value named HasLUAShield. Don't set its value data, leave it empty. This value is only required to add the UAC icon to the context menu item you are creating. You should get it as follows:Windows 10 install cab runas HasLUAShield
  6. Under the runas subkey, create a new subkey called "command". You will get the following path:
    HKEY_CLASSES_ROOT\CABFolder\shell\runas\command

    Windows 10 install cab create key 2
    Set the default value data of the command subkey to the following text:

    cmd /k dism /online /add-package /packagepath:"%1"

    You will get something like this:Windows 10 install cab context menu entry 2

    Windows 10 install cab context menu entry

Now right click any *.cab file to test the context menu item:Windows 10 install cab in action

A UAC prompt will appear when you click "Install this update".Windows 10 install cab in action 2

If you click "Yes", it will open a new command prompt window and install the update you selected in File Explorer. It will remain opened until you close it, so you will not miss any notification which appear from the setup package. Also, see the following article: How to install CAB and MSU updates in Windows 10.Windows 10 install cab in action 3

You are done. To undo this change, delete the mentioned "runas" subkey.

To save your time, you can use Winaero Tweaker:

Winaero Tweaker install cabIt will provide the same functionality with one click. Get it here: Winaero Tweaker.

I prepared ready to use Registry files which you can open to merge them into the Registry. You can download them here:

Download Registry Files

That's it.

Support us

Winaero greatly relies on your support. You can help the site keep bringing you interesting and useful content and software by using these options:

If you like this article, please share it using the buttons below. It won't take a lot from you, but it will help us grow. Thanks for your support!

Advertisеment

Author: Sergey Tkachenko

Sergey Tkachenko is a software developer who started Winaero back in 2011. On this blog, Sergey is writing about everything connected to Microsoft, Windows and popular software. Follow him on Telegram, Twitter, and YouTube.

20 thoughts on “Context menu to install CAB updates in Windows 10”

    1. This is strange, because I “captured” these files from my working context menu.
      Means I created everything manually, checked that it works and then exported into the reg file.
      Also, I checked it in my Windows 8 machine and it there the context menu also works like a charm.
      Are you sure you imported the right file successfully?

      1. Hi sergey I tried it again On new formatted windows 10 and this time worked thank you , maybe ther was something in my old system

  1. Is it possible to make an analogous tweak for uninstall updates via cab files? I have tried to create the context menu entry, but then I realise the RunAs subkey in the registry is required, which, unfortunately is already occupied. Any help?

    1. Well, you need to implemented the command like “wusa /uninstall /kb:”
      I have no idea how it can be used in the context menu with cam files.
      It requires to extract the KB number from the cab file name.
      And if you renamed the cab file, it will fail.

  2. Windows 10 Pro 32-bit Version 1607 Build 1493.187
    1) I used Winaero Tweaker to check “Add Install command to context menu of CAB files”, but it didn’t add it!
    2) I used REGEDIT to add the key described in this article, but it was already there, exactly as described in the article above — so apparently WT did make the registry changes.
    3) I then rebooted, but the Install command still does NOT appear in the context menu of CAB files

    Windows 10 Pro 64-bit Version 1607 Build 1493.187
    Same as for the 32-bit version!

    Windows 10 Home 64-bit Version 1607 Build 1493.187
    The registry change works, and “Install” IS added to the context men of CAB files/

    WHY??

    checked

  3. Addendum:
    Following the suggestion of “Alex” above: I don’t have WINRAR, but I do have WINZIP, which is installed on the W10 Pro systems, but not on the W10 Home system. When I removed it’s file association for .CAB files, the “Install” option now appears in the context menu, as desired.

  4. Command works for Windows 10 CAB updates, doesn’t work for Office 2016 CAB updates: Command Prompt returns error 0x80070002 (file not found) and asks to examine dism.log.
    Research returned:
    “After a deep research, I found that Install Updates Offline can only install Windows OS updates because of its DISM roots. I am afraid updating office product offline is not supported by the dism command line.”
    https://social.technet.microsoft.com/Forums/office/en-US/683d7d72-b296-419f-b585-becd5d99b37f/dism-offline-update-error-0x80070002?forum=w7itproinstall

  5. This doesn’t seem to work for Windows 10 Fall Creators Update. I tried 3 methods. Adding the details manually in the registry, using the reg file you provided, and using Winaero Tweaker 0.8.0.0. It appears in the registry but I don’t get the option to install .cab file from right click menu.

  6. Here’s my suggestion:
    Add the runas key to WinRAR’s entry in HKCR

    and for good measure, in case you remove WinRAR, add it to CABFolder’s too..

    I tested it.. it works.. and you can keep WinRAR installed.

    1. Oh, btw, my suggestion is also a great way to avoid M$ stealing associations and contexts menus. Just edit THEIR app’s keys :P

Leave a Reply

Your email address will not be published.

css.php
Using Telegram? Subscribe to the blog channel!
Hello. Add your message here.