安装VS2022 报错“无法安装 Microsoft.VisualStudio.Devenv.Msi”解决方案
目录
未能安装包“Microsoft.VisualStudio.Devenv.Msi,version=17.4.33006.217,productarch=neutral”。
搜索 URL
https://aka.ms/VSSetupErrorReports?q=PackageId=Microsoft.VisualStudio.Devenv.Msi;PackageAction=Install;ReturnCode=1406
详细信息
MSI: C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.VisualStudio.Devenv.Msi,version=17.4.33006.217,productarch=neutral\Microsoft.VisualStudio.Devenv.x64.Msi.msi,属性: REBOOT=ReallySuppress ARPSYSTEMCOMPONENT=1 MSIFASTINSTALL="7" VSEXTUI="1" VS7.3643236F_FC70_11D3_A536_0090278A1BB8="C:\Program Files\Microsoft Visual Studio\2022\Enterprise"
返回代码: 1603
返回代码详细信息: 安装时发生严重错误
消息 ID: 1406
消息详细信息: Could not write value devenv.exe to key \SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BLOCK_CROSS_PROTOCOL_FILE_NAVIGATION. Verify that you have sufficient access to that key, or contact your support personnel.
解决方案
打开注册表,地址栏输入下面地址,按回车。
\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BLOCK_CROSS_PROTOCOL_FILE_NAVIGATION
在目录节点,点右键,权限,添加Everyone权限