From 157d0dd46ba3ca0b4a28e80c7aabdbdcc715317b Mon Sep 17 00:00:00 2001 From: lawrencegripper Date: Wed, 27 Nov 2024 16:03:13 +0000 Subject: [PATCH] Allow postgres to install necessary MSVC redistributables Newer postgres installes require MSVC 17 which isn't on the box by default. Previously this worked as they required MSVC 16 which was installed by Visual Studio https://github.com/actions/runner-images/pull/11047#issuecomment-2504219995 --- images/windows/scripts/build/Install-PostgreSQL.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/images/windows/scripts/build/Install-PostgreSQL.ps1 b/images/windows/scripts/build/Install-PostgreSQL.ps1 index 2bad88580..a43b5da55 100644 --- a/images/windows/scripts/build/Install-PostgreSQL.ps1 +++ b/images/windows/scripts/build/Install-PostgreSQL.ps1 @@ -60,7 +60,7 @@ if ($null -ne ($toolsetVersion | Select-String -Pattern '\d+\.\d+\.\d+')) { # Return the previous value of ErrorAction and invoke Install-Binary function $ErrorActionPreference = $errorActionOldValue -$installerArgs = @("--install_runtimes 0", "--superpassword root", "--enable_acledit 1", "--unattendedmodeui none", "--mode unattended") +$installerArgs = @("--superpassword root", "--enable_acledit 1", "--unattendedmodeui none", "--mode unattended") Install-Binary ` -Url $installerUrl ` -InstallArgs $installerArgs `