报错:
Product: Microsoft Visual C++ 2019 X86 Minimum Runtime - 14.28.29334 -- Error 1402. Could not open key: UNKNOWN\Components\8F139CF91DE936230A1FA8ED33D0E0EC\218A10D01A28F1845864E8829E678FFD. System error 5. Verify that you have sufficient access to that key, or contact your support personnel.
原因是注册表权限问题,即使用管理员执行注册表编辑器也不行,非常的神奇。
解决办法,用 System Account 执行注册表编辑器,具体步骤 参考 :
Install Error 1402 (Could not open key: UNKNOWN\Components) [McNeel Wiki]
-
Download PsExec from Microsoft TechNet, and extract the contents to your desktop.
-
Open a Windows command shell.
-
Change directories to your desktop.
-
In the command shell, enter psexec -i -d -s c:\windows\regedit.exe. This causes Windows to run the registry editor with the permissions of the System account – an account even more powerful than Administrator.
-
Browse to HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\UserData\
-
Right-click the UserData folder, then click Permissions…
-
In the Permissions for UserData dialog box, click Advanced.
-
Be sure that Administrators has Full Control permissions in this folder, and that Users has Read permissions. There will be other user permissions, too, but Administrators and Users are what matter most.
-
Select the Replace all child object permissions with inheritable permissions from this object.
-
Click OK twice to apply permissions.
本文介绍了一种特殊的注册表权限问题,导致安装Microsoft Visual C++ 2019时出现Error 1402错误。通过使用PsExec工具以SystemAccount权限运行注册表编辑器,可以修改相关注册表项的权限,进而解决此问题。
1107

被折叠的 条评论
为什么被折叠?



