重庆思庄Oracle、KingBase、PostgreSQL、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 237|回复: 0
打印 上一主题 下一主题

VS2022 17.14离线安装时提示Unable to verify the certificate

[复制链接]
跳转到指定楼层
楼主
发表于 2025-11-30 15:47:52 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
1、通过以下命令创建离线安装包

vs_Community.exe --layout D:\VS2022\Offline --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NetWeb --includeOptional --lang zh-CN

2、通过以下命令进行安装

d:\Offline\vs_Community.exe --noWeb --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NetWeb --includeOptional --lang zh-CN

安装过程中出现闪退现象,查询%temp%文件夹中安装日志,发现
[0568:0003][2025-07-10T22:15:48] Using Offline package: D:\Offline\vs_installer.opc
[0568:0003][2025-07-10T22:15:48] Saving Certificates to layout folder
[0568:0003][2025-07-10T22:15:49] Certificate is invalid: D:\Offline\vs_installer.opc
[0568:0003][2025-07-10T22:15:49] Error: Unable to verify the certificate: InvalidCertificate
[0568:0003][2025-07-10T22:15:49] Error 0x80131509: Signature verification failed. Error: Unable to verify the integrity of the installation files: the certificate could not be verified. 在 Microsoft.VisualStudio.Setup.OpcVerifier.Verify(Stream packageStream, String layoutLocation, Boolean skipSavingCertificate) 在 Microsoft.VisualStudio.Setup.Bootstrapper.Bootstrapper.VerifyLayoutPackage(Stream packageStream)
[0568:0003][2025-07-10T22:15:49] Bootstrapper failed with known error.



经过网上各种搜索,找到解决方案如下:下载以下证书,并安装证书到“受信任的根证书颁发机构”

http://www.microsoft.com/pkiops/certs/Microsoft Windows Code Signing PCA 2024.crt


本帖方法并未经验证  http://bbs.cqsztech.com/forum.ph ... =32982&highlight=vs 该帖给出了另一种方法,可选择使用

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2026-4-18 10:57 , Processed in 0.194191 second(s), 20 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表