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

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

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 numerical data", install this update package (or other similar expression, you are free).

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) use).

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

7. Click on the command and double-click on the right side of the default & rdquo;, in the value data, enter:
cmd /k dism /online /add-package /packagepath:“%1”

At this time, right click on the CAB installation package file, there should be a project in the menu to install this update package, after running, you will be asked for administrator privileges, click “ Yes & rdquo; you can continue to install. 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