How to add right-click installation for Win10 CAB update package?

  
1. Press Win+R to call up the operation, press regedit and press Enter to enter the registry editor
2. Locate to
HKEY_CLASSES_ROOTCABFolderShell

3. Create a new item under Shell (as shown below) Named runas

4, click runas, double click on the right side of the "default", enter "in the value data", install this update package (or other similar expression, you are free)
< Br>5, create a new string value (as shown below), named HasLUAShield, leave the value data blank (because the administrator permission is required to install such an update package, this numeric data space is used as a UAC icon)

6. Create a new item under runas (as shown below), name it command

7, click on command, double click on the right side of the default ”, enter in the value data:
cmd /k dism /online /add-package /packagepath:"%1"

At this point, right click on the CAB installation package file, there should be a project in the menu that installs this update package, run After that, you will be asked for administrator privileges. Click “Yes  you can continue the installation. A reboot may be required after installation. For example, the input below “Y” will restart. If you want to remove this function, just delete the new runas item in step 3.

If you want to verify whether the right-click menu is valid after the above toss, you can download the Win10 first anniversary update version 14393.5 patch KB3176927 to experiment (other CAB files are also available):
32 bit (12.5 MB)
Copyright © Windows knowledge All Rights Reserved