未能安装包“Microsoft.VisualStudio.VsWebProtocolSelector.Msi,version=17.8.34129.139”。
搜索 URL
https://aka.ms/VSSetupErrorReports?q=PackageId=Microsoft.VisualStudio.VsWebProtocolSelector.Msi;PackageAction=Install;ReturnCode=2330
详细信息
MSI: G:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.VisualStudio.VsWebProtocolSelector.Msi,version=17.8.34129.139\Microsoft.VisualStudio.VsWebProtocolSelector.Msi.msi,属性: REBOOT=ReallySuppress ARPSYSTEMCOMPONENT=1 MSIFASTINSTALL="7" VSEXTUI="1" VSFOLDER="G:\Program Files (x86)\Microsoft Visual Studio\Shared"
返回代码: 1603
返回代码详细信息: 安装时发生严重错误
消息 ID: 2330
消息详细信息: The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2330.
如果你也碰到了 上面的错误,可以先到目录下手动安装VsWebProtocolSelector.Msi,同时用Process Monitor查看,结合日志,发现少注册表项。
通过手动添加后,
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\SharedDlls\D:\Program Files (x86)\Microsoft Visual Studio\Shared\VsWebProtocolSelector\Microsoft.VisualStudio.VsWebProtocolSelector.exe
正确安装VS2022.
参考:
Developer Community