无法在Wix安装程序中下载VC ++ Redist套件 [英] Cannot download VC++ Redist kit in the wix installer

查看:120
本文介绍了无法在Wix安装程序中下载VC ++ Redist套件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序具有VC ++ 2015可再发行组件的先决条件.这是wix中的代码:

I have VC++ 2015 Redistributable prerequisites for my application. Here is the code from the wix:

    <!-- Check registry for .NET 4.5.2 -->
<util:RegistrySearch Root="HKLM" Key="SOFTWARE\Microsoft\Net Framework Setup\NDP\v4\Full" Value="Release" Variable="Netfx46FullVersion" />

<PackageGroup Id="NetFx46">
  <ExePackage
    Id="NetFx46Web"
    DisplayName="Microsoft .NET Framework 4.6"
    DownloadUrl="http://go.microsoft.com/fwlink/?LinkId=528222"
    Compressed="no"
    Cache="yes"
    PerMachine="yes"
    Permanent="yes"
    Vital="yes"
    SourceFile="Redist\NDP46-KB3045560-Web.exe"
    DetectCondition="(Netfx46FullVersion&gt;=393295)"
  />
</PackageGroup>

<!-- Check registry for Visual C++ 2015 Redistributable -->
<util:RegistrySearch Root="HKLM" Key="SOFTWARE\Microsoft\VisualStudio\14.0" Result="exists" Variable="VCRedist14" />

<PackageGroup Id="VCRedist14">
  <ExePackage 
    Id="VCRedist14"
    DisplayName="Visual C++ 2015 Redistributable"
    DownloadUrl="https://download.microsoft.com/download/9/3/F/93FCF1E7-E6A4-478B-96E7-D4B285925B00/vc_redist.x86.exe"
    Cache="yes"
    Compressed="no"
    PerMachine="yes"
    Permanent="yes"
    Vital="yes"
    SourceFile="Redist\vcredist_x86.exe"
    InstallCommand="/q"
    DetectCondition="VCRedist14=1"
  />
</PackageGroup>

这是日志中的错误:

错误0x80072f19:无法将请求发送到URL:

Error 0x80072f19: Failed to send request to URL: https://download.microsoft.com/download/9/3/F/93FCF1E7-E6A4-478B-96E7-D4B285925B00/vc_redist.x86.exe, trying to process HTTP status code anyway. Error 0x80072f19: Unknown HTTP status code 0, returned from URL: https://download.microsoft.com/download/9/3/F/93FCF1E7-E6A4-478B-96E7-D4B285925B00/vc_redist.x86.exe

我正在干净的Windows 7上安装应用程序. 如您所见,我也正在安装.net 4.6并且它可以正常工作.链接有效. 并且第二次尝试安装该应用程序成功.

I am installing the application on a clean Windows 7. As you can see I am installing .net 4.6 as well and it works.The links work. And a second attempt to install the app succeeds.

如何使它在第一次尝试时就起作用?

How can I make it work form the first attempt?

推荐答案

仅在一个Windows 7虚拟机上发生,在其他情况下则不可复制.所使用的解决方案效果很好.

happened only on one Windows 7 virtual machine, not reproduce-able in other cases. The solution used works fine.

这篇关于无法在Wix安装程序中下载VC ++ Redist套件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆