0

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>

Here is the error from log:

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

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?

4

2 回答 2

0

也许改用 golink (x86) http://go.microsoft.com/fwlink/?LinkID=615459&clcid=0x409

在此线程中查看我与 Cory 的对话,了解关于在connect.microsoft.com上为安装程序提供的 Visual Studio 包

于 2016-01-20T11:36:54.163 回答
0

仅在一台 Windows 7 虚拟机上发生,在其他情况下无法重现。使用的解决方案工作正常。

于 2016-01-21T12:18:17.653 回答