【问题标题】:Visual Studio Extension certificate validation fails for Votive (Wix)Votive (Wix) 的 Visual Studio 扩展证书验证失败
【发布时间】:2019-11-30 22:05:15
【问题描述】:

安装 Votive,Wix 的扩展 - Windows 安装程序对于 Votive 2017 和 Votive 2019 Visual Studio 扩展均失败。原因是证书验证错误。如何在不出现证书验证错误的情况下更新根证书并安装 Visual Studio 扩展?

【问题讨论】:

    标签: visual-studio wix certificate certutil votive


    【解决方案1】:

    可以使用以下 Powershell 命令安装 Votive,以使用 Windows 更新刷新根证书。

    mkdir c:\certs #temporary folder where the certificates will be installed/updated
    cd c:\certs 
    certutil.exe -generateSSTFromWU roots.sst
    $sstStore = ( Get-ChildItem -Path C:\certs\roots.sst )
    $sstStore | Import-Certificate -CertStoreLocation Cert:\LocalMachine\Root
    

    -generateSSTFromWU 选项将所有证书下载到一个 .sst 文件中,该文件可以通过双击使用 MMC 打开,但我运行了上面列出的 Powershell 命令来安装所有证书。

    完成此操作后,安装了 Votive 扩展,我可以打开带有 .wixproj Wix 项目的 Visual Studio 解决方案。这适用于 Votive 2017 和 Votive 2019。

    可以使用 Chocolatey 安装 WixToolset,但我需要 Visual Studio 扩展 - 称为 Votive。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-03-15
      • 2022-01-15
      • 2018-03-15
      • 2015-11-13
      • 2021-11-26
      • 2018-09-10
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多