安装Votive是Wix - Windows安装程序的一个扩展,在Votive 2017和Votive 2019 Visual Studio扩展上都会失败。原因是证书验证错误。如何更新根证书并安装Visual Studio扩展而不出现证书验证错误?
发布于 2019-12-01 06:08:49
可以使用以下Powershell命令安装Votive,以使用Windows Update刷新根证书。
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扩展,我可以打开Visual Studio解决方案,其中包含.wixproj Wix项目。这对Votive 2017和Votive 2019都有效。
可以将WixToolset与Chocolatey一起安装,但我需要Visual Studio扩展-名为Votive。
https://stackoverflow.com/questions/59120685
复制相似问题