From 77861ed7a8b9b35be92b94da3d2b3baf6a43e0de Mon Sep 17 00:00:00 2001 From: Elliot Saba Date: Tue, 30 Jul 2024 23:12:22 -0700 Subject: [PATCH] [Windows] Install Visual C++ redistributables (#253) There are JLLs that require the Visual C++ redistributables, let's allow those JLLs to be used within these containers --- windows/package-i686/Dockerfile | 3 +++ windows/package-x86_64/Dockerfile | 2 ++ 2 files changed, 5 insertions(+) diff --git a/windows/package-i686/Dockerfile b/windows/package-i686/Dockerfile index 934038e..83667ab 100644 --- a/windows/package-i686/Dockerfile +++ b/windows/package-i686/Dockerfile @@ -46,6 +46,9 @@ RUN powershell -Command "\ setx /M PATH ('%PATH%;' + (Resolve-Path 'C:/Program Files (x86)/Windows Kits/10/bin/*/x64/')) ; \ Remove-Item '%SDK_EXE%'" +# Install Visual C++ redistributables +RUN powershell -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://vcredist.com/install.ps1'))" + # Install AWS CLI RUN msiexec.exe /i "https://awscli.amazonaws.com/AWSCLIV2.msi" /quiet /qn && \ setx /M PATH "%PATH%;C:\Program Files\Amazon\AWSCLIV2" diff --git a/windows/package-x86_64/Dockerfile b/windows/package-x86_64/Dockerfile index ecec2b1..a68fe8d 100644 --- a/windows/package-x86_64/Dockerfile +++ b/windows/package-x86_64/Dockerfile @@ -41,6 +41,8 @@ RUN powershell -Command "\ setx /M PATH ('%PATH%;' + (Resolve-Path 'C:/Program Files (x86)/Windows Kits/10/bin/*/x64/')) ; \ Remove-Item '%SDK_EXE%'" +RUN powershell -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://vcredist.com/install.ps1'))" + # Install AWS CLI RUN msiexec.exe /i "https://awscli.amazonaws.com/AWSCLIV2.msi" /quiet /qn && \ setx /M PATH "%PATH%;C:\Program Files\Amazon\AWSCLIV2"