You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
1.8 KiB
PowerShell
30 lines
1.8 KiB
PowerShell
<#
|
|
All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
|
|
its licensors.
|
|
|
|
For complete copyright and license terms please see the LICENSE at the root of this
|
|
distribution (the "License"). All use of this software is governed by the License,
|
|
or, if provided, by the license below or the license accompanying this file. Do not
|
|
remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
#>
|
|
|
|
choco install visualstudio2019buildtools --version=16.8.2 --package-parameters "--config .\vs2019bt.vsconfig" -y
|
|
choco install visualstudio2017buildtools --version=15.9.29 --package-parameters "--config .\vs2017bt.vsconfig" -y
|
|
|
|
Write-Host "Installing downstream dependancies"
|
|
choco install -y dotnet3.5
|
|
|
|
# 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\
|
|
# More details here: https://docs.microsoft.com/en-us/windows/win32/debug/calling-the-dbghelp-library
|
|
|
|
Import-Module C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1
|
|
$packageName = 'windows-sdk-10.1'
|
|
$featureName = 'OptionId.WindowsDesktopDebuggers'
|
|
$installerType = 'EXE'
|
|
$url = 'https://download.microsoft.com/download/4/2/2/42245968-6A79-4DA7-A5FB-08C0AD0AE661/windowssdk/winsdksetup.exe'
|
|
$checksum = '2E28117E82B4D02FE30D564B835ACE9976612609271265872F20F2256A9C506B'
|
|
$checksumType = 'sha256'
|
|
$silentArgs = "/Quiet /NoRestart /features $featureName /Log ""$env:temp\${packageName}_$([Guid]::NewGuid().ToString('D')).log"""
|
|
$validExitCodes = @(0,3010)
|
|
Install-ChocolateyPackage $packageName $installerType $silentArgs $url -checksum $checksum -checksumType $checksumType -validExitCodes $validExitCodes |