diff --git a/windows/internal/vs2019_install.ps1 b/windows/internal/vs2019_install.ps1 deleted file mode 100644 index 5574f82eb..000000000 --- a/windows/internal/vs2019_install.ps1 +++ /dev/null @@ -1,48 +0,0 @@ -# https://developercommunity.visualstudio.com/t/install-specific-version-of-vs-component/1142479 -# https://docs.microsoft.com/en-us/visualstudio/releases/2019/history#release-dates-and-build-numbers - -# 16.8.6 BuildTools -$VS_DOWNLOAD_LINK = "https://ossci-windows.s3.us-east-1.amazonaws.com/vs16.8.6_BuildTools.exe" -$COLLECT_DOWNLOAD_LINK = "https://aka.ms/vscollect.exe" -$VS_INSTALL_ARGS = @("--nocache","--quiet","--wait", "--add Microsoft.VisualStudio.Workload.VCTools", - "--add Microsoft.Component.MSBuild", - "--add Microsoft.VisualStudio.Component.Roslyn.Compiler", - "--add Microsoft.VisualStudio.Component.TextTemplating", - "--add Microsoft.VisualStudio.Component.VC.CoreIde", - "--add Microsoft.VisualStudio.Component.VC.Redist.14.Latest", - "--add Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Core", - "--add Microsoft.VisualStudio.Component.VC.Tools.x86.x64", - "--add Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Win81") - -curl.exe --retry 3 -kL $VS_DOWNLOAD_LINK --output vs_installer.exe -if ($LASTEXITCODE -ne 0) { - echo "Download of the VS 2019 Version 16.8.5 installer failed" - exit 1 -} - -if (Test-Path "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe") { - $existingPath = & "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -products "Microsoft.VisualStudio.Product.BuildTools" -version "[16, 17)" -property installationPath - if ($existingPath -ne $null) { - if (!${env:CIRCLECI}) { - echo "Found correctly versioned existing BuildTools installation in $existingPath" - exit 0 - } - echo "Found existing BuildTools installation in $existingPath, keeping it" - } -} - -$process = Start-Process "${PWD}\vs_installer.exe" -ArgumentList $VS_INSTALL_ARGS -NoNewWindow -Wait -PassThru -Remove-Item -Path vs_installer.exe -Force -$exitCode = $process.ExitCode -if (($exitCode -ne 0) -and ($exitCode -ne 3010)) { - echo "VS 2019 installer exited with code $exitCode, which should be one of [0, 3010]." - curl.exe --retry 3 -kL $COLLECT_DOWNLOAD_LINK --output Collect.exe - if ($LASTEXITCODE -ne 0) { - echo "Download of the VS Collect tool failed." - exit 1 - } - Start-Process "${PWD}\Collect.exe" -NoNewWindow -Wait -PassThru - New-Item -Path "C:\w\build-results" -ItemType "directory" -Force - Copy-Item -Path "C:\Users\${env:USERNAME}\AppData\Local\Temp\vslogs.zip" -Destination "C:\w\build-results\" - exit 1 -} diff --git a/windows/internal/vs2022_install.ps1 b/windows/internal/vs2022_install.ps1 deleted file mode 100644 index fe96e85d2..000000000 --- a/windows/internal/vs2022_install.ps1 +++ /dev/null @@ -1,48 +0,0 @@ -# https://developercommunity.visualstudio.com/t/install-specific-version-of-vs-component/1142479 -# https://learn.microsoft.com/en-us/visualstudio/releases/2022/release-history#evergreen-bootstrappers - -# 17.4.3 BuildTools -$VS_DOWNLOAD_LINK = "https://download.visualstudio.microsoft.com/download/pr/8f480125-28b8-4a2c-847c-c2b02a8cdd1b/64be21d4ada005d7d07896ed0b004c322409bd04d6e8eba4c03c9fa39c928e7a/vs_BuildTools.exe" -$COLLECT_DOWNLOAD_LINK = "https://aka.ms/vscollect.exe" -$VS_INSTALL_ARGS = @("--nocache","--quiet","--wait", "--add Microsoft.VisualStudio.Workload.VCTools", - "--add Microsoft.Component.MSBuild", - "--add Microsoft.VisualStudio.Component.Roslyn.Compiler", - "--add Microsoft.VisualStudio.Component.TextTemplating", - "--add Microsoft.VisualStudio.Component.VC.CoreIde", - "--add Microsoft.VisualStudio.Component.VC.Redist.14.Latest", - "--add Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Core", - "--add Microsoft.VisualStudio.Component.VC.Tools.x86.x64", - "--add Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Win81") - -curl.exe --retry 3 -kL $VS_DOWNLOAD_LINK --output vs_installer.exe -if ($LASTEXITCODE -ne 0) { - echo "Download of the VS $VC_YEAR Version $VS_VERSION installer failed" - exit 1 -} - -if (Test-Path "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe") { - $existingPath = & "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -products "Microsoft.VisualStudio.Product.BuildTools" -version "[17, 18)" -property installationPath - if ($existingPath -ne $null) { - if (!${env:CIRCLECI}) { - echo "Found correctly versioned existing BuildTools installation in $existingPath" - exit 0 - } - echo "Found existing BuildTools installation in $existingPath, keeping it" - } -} - -$process = Start-Process "${PWD}\vs_installer.exe" -ArgumentList $VS_INSTALL_ARGS -NoNewWindow -Wait -PassThru -Remove-Item -Path vs_installer.exe -Force -$exitCode = $process.ExitCode -if (($exitCode -ne 0) -and ($exitCode -ne 3010)) { - echo "VS $VC_YEAR installer exited with code $exitCode, which should be one of [0, 3010]." - curl.exe --retry 3 -kL $COLLECT_DOWNLOAD_LINK --output Collect.exe - if ($LASTEXITCODE -ne 0) { - echo "Download of the VS Collect tool failed." - exit 1 - } - Start-Process "${PWD}\Collect.exe" -NoNewWindow -Wait -PassThru - New-Item -Path "C:\w\build-results" -ItemType "directory" -Force - Copy-Item -Path "C:\Users\${env:USERNAME}\AppData\Local\Temp\vslogs.zip" -Destination "C:\w\build-results\" - exit 1 -}