Win10 CAB update package how to add right-click installation item

  
The specific method is as follows:
1, press Win+R to call out the operation, enter regedit and press Enter to enter the registry editor.
2, located to: HKEY_CLASSES_ROOTCABFolderShell.
3, under the Shell new item (as shown below), named runas.
4, click runas, double-click on the right side of the "default", enter "in the value data" to install this update package & rdquo; (or other similar expression, you are free).
5, the new string value (as shown below), named HasLUAShield, the value of the data is left blank (because the installation of such update package requires administrator privileges, so this value data space is used to place the UAC icon).
6, under the runas new item (as shown below), named command.
7, click on command, double-click on the right side of the "default", enter in the numerical data:
cmd /k dism /online /add-package /packagepath:“%1”
Right click on the CAB installation package file, there should be a “Install this update package” item in the menu. After running, you will be asked for administrator privileges. Click ““Yes” to 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.
The above is a tutorial brought by Xiaobian, I hope to help everyone!

Copyright © Windows knowledge All Rights Reserved