Visual Studion 2019 Build Tools Offline Installer feed error

2020-12-22T14:22:58.3+00:00

Hello! I have got this problem twice.
I need to install modern Visual Studio 2019 Build Tools in the isolated location.
On the Internet-connected PC I have made the offline install folder using this command:

vs_buildtools__605930698.1593373046.exe --add Microsoft.VisualStudio.Workload.MSBuildTools --layout .\buildTools2019offline --lang en-US

It contains signed Catalog.json with info:

 "info":{"id":"VisualStudio/16.8.3+30804.86","buildBranch":"d16.8","buildVersion":"16.8.30804.86","localBuild":"build-lab","manifestName":"VisualStudio","manifestType":"installer","productDisplayVersion":"16.8.3","productLine":"Dev16","productLineVersion":"2019","productMilestone":"RTW","productMilestoneIsPreRelease":"False","productName":"Visual Studio","productPatchVersion":"3","productPreReleaseMilestoneSuffix":"1.0","productSemanticVersion":"16.8.3+30804.86"}

Also it contains the following definition:

{"id":"Microsoft.Build.UnGAC","version":"16.8.2.2056705","type":"Exe","chip":"neutral","language":"neutral","payloads":[{"fileName":"Microsoft.Build.UnGAC.exe","sha256":"28b4ed53312f7b426f51f2bdb85967bcb4a3e38afa7edff1ed686ed435a90227","size":7168,"url":"https://download.visualstudio.microsoft.com/download/pr/43bd58d8-f07b-4314-a32a-f72be07febaa/28b4ed53312f7b426f51f2bdb85967bcb4a3e38afa7edff1ed686ed435a90227/Microsoft.Build.UnGAC.exe","signer":{"$ref":"1"}}],"installParams":{"fileName":"[Payload]"},"repairParams":{"fileName":"[Payload]"},"installSizes":{}}

But in reality this file was downloaded with length 16288 bytes. Also it can be downloaded manually by the URL with same result. But the SHA256 hash of downloaded file is correct! (28B4ED53312F7B426F51F2BDB85967BCB4A3E38AFA7EDFF1ED686ED435A90227 using powershell's Get-FileHash)

So, this package can't be installed in the isolated location. It seems that from the HTTP feed only file hash is validated during installation process, but from the local folder file length is checked prior the hash validation.

Community Center | Not monitored
{count} votes

1 answer

Sort by: Most helpful
  1. Александр Розенбаум 11 Reputation points
    2020-12-23T10:20:06.273+00:00

    Certificates are the same as in the previous installed vsbt 16.7.6.

    But I have found the solution. I had to totally ununstall the 16.7.6 version first!!!

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.