VC ++ installation process / window update process Error 0x80070005 or Error 1402 Solution

问题:Error 1402. Could not open key UNKNOWN\Components\....

Cause: This issue is caused due to a registry permissions issue, you can use Microsoft's SubInACL Tool resolved.

 

Solution:

1, download and install  SubInACL Tool , installed by default in C: \ Program Files (x86) \ Windows Resource Kits \ Tools

2, run CMD as an administrator or Windows PowerShell, and switch to SubInACL Tool installation folder, or copy the folder to the current path subinacl.exe file, type notepad reset.cmd, and then press Enter to create a command file

3. Copy the following code:

@echo off
subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=administrators=f /grant=system=f
subinacl /subkeyreg HKEY_CURRENT_USER /grant=administrators=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=administrators=f /grant=system=f
subinacl /subdirectories %windir% /grant=administrators=f /grant=system=f
@Echo -
@Echo Done.
@Echo -
@pause

 

4, type reset.cmd, call subinacl run program, be patient, to be run for a long time, the end of the run the following tips: 5

5, restart the computer, install VC ++ program. 

Published 13 original articles · won praise 10 · views 50000 +

Guess you like

Origin blog.csdn.net/Mr_sdhm/article/details/104781370