From 3a2abf9037d0df5648e9b888402654639215fa1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Lupia=C3=B1ez=20Casares?= Date: Sun, 2 Nov 2025 14:17:16 +0100 Subject: [PATCH] Ensures Visual C++ Redistributables for 2013 is installed (#757) --- dist/platforms/windows/entrypoint.ps1 | 3 +++ dist/platforms/windows/install_vcredist13.ps1 | 11 +++++++++++ 2 files changed, 14 insertions(+) create mode 100644 dist/platforms/windows/install_vcredist13.ps1 diff --git a/dist/platforms/windows/entrypoint.ps1 b/dist/platforms/windows/entrypoint.ps1 index 0868015d..3d5d17e6 100644 --- a/dist/platforms/windows/entrypoint.ps1 +++ b/dist/platforms/windows/entrypoint.ps1 @@ -18,6 +18,9 @@ regsvr32 C:\ProgramData\Microsoft\VisualStudio\Setup\x64\Microsoft.VisualStudio. # Kill the regsvr process Get-Process -Name regsvr32 | ForEach-Object { Stop-Process -Id $_.Id -Force } +# Install Visual C++ 2013 Redistributables +. "c:\steps\install_vcredist13.ps1" + # Setup Git Credentials . "c:\steps\set_gitcredential.ps1" diff --git a/dist/platforms/windows/install_vcredist13.ps1 b/dist/platforms/windows/install_vcredist13.ps1 new file mode 100644 index 00000000..d0de3586 --- /dev/null +++ b/dist/platforms/windows/install_vcredist13.ps1 @@ -0,0 +1,11 @@ +# For some reason, Unity is failing in github actions windows runners +# due to missing Visual C++ 2013 redistributables. +# This script downloads and installs the required redistributables. +Write-Output "" +Write-Output "#########################################################" +Write-Output "# Installing Visual C++ Redistributables (2013) #" +Write-Output "#########################################################" +Write-Output "" + + +choco install vcredist2013 -y --no-progress