install-windows-vsbuildtools.ps1 1.5 KB

123456789101112131415161718192021222324252627
  1. <#
  2. Copyright (c) Contributors to the Open 3D Engine Project.
  3. For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. SPDX-License-Identifier: Apache-2.0 OR MIT
  5. #>
  6. choco install visualstudio2022buildtools --version=117.4.1.0 --package-parameters "--config $pwd\vs2022bt.vsconfig" -y
  7. choco install visualstudio2019buildtools --version=16.11.21 --package-parameters "--config $pwd\vs2019bt.vsconfig" -y
  8. Write-Host "Installing downstream dependancies"
  9. choco install -y dotnet3.5
  10. # This is a custom install of the Win10 SDK debugger which was not included in VS2019/2017. This resolves an issue where the older DbgHelp library was being referenced from C:\Windows\System32\
  11. # More details here: https://docs.microsoft.com/en-us/windows/win32/debug/calling-the-dbghelp-library
  12. Import-Module C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1
  13. $packageName = 'windows-sdk-10.1'
  14. $featureName = 'OptionId.WindowsDesktopDebuggers'
  15. $installerType = 'EXE'
  16. $url = 'https://download.microsoft.com/download/4/2/2/42245968-6A79-4DA7-A5FB-08C0AD0AE661/windowssdk/winsdksetup.exe'
  17. $checksum = '2E28117E82B4D02FE30D564B835ACE9976612609271265872F20F2256A9C506B'
  18. $checksumType = 'sha256'
  19. $silentArgs = "/Quiet /NoRestart /features $featureName /Log ""$env:temp\${packageName}_$([Guid]::NewGuid().ToString('D')).log"""
  20. $validExitCodes = @(0,3010)
  21. Install-ChocolateyPackage $packageName $installerType $silentArgs $url -checksum $checksum -checksumType $checksumType -validExitCodes $validExitCodes