Directly install vs redist before installing postgres

This commit is contained in:
lawrencegripper
2024-11-29 10:23:46 +00:00
parent ba0b242503
commit 1acb48ed45
3 changed files with 12 additions and 3 deletions

View File

@@ -58,9 +58,16 @@ if ($null -ne ($toolsetVersion | Select-String -Pattern '\d+\.\d+\.\d+')) {
} while (!$response)
}
# Postgres 14 requires the vs 17 redistributable
$vs17RedistUrl = "https://aka.ms/vs/17/release/vc_redist.x64.exe"
Install-Binary `
-Url $vs17RedistUrl `
-InstallArgs @("/install", "/quiet", "/norestart") `
-ExpectedSignature (Get-ToolsetContent).postgresql.vcRedistSignature
# Return the previous value of ErrorAction and invoke Install-Binary function
$ErrorActionPreference = $errorActionOldValue
$installerArgs = @("--superpassword root", "--enable_acledit 1", "--unattendedmodeui none", "--mode unattended")
$installerArgs = @("--install_runtimes 0", "--superpassword root", "--enable_acledit 1", "--unattendedmodeui none", "--mode unattended")
Install-Binary `
-Url $installerUrl `
-InstallArgs $installerArgs `

View File

@@ -473,7 +473,8 @@
},
"postgresql": {
"signature": "698BA51AA27CC31282AACA5055E4B9190BC6C0E9",
"version": "14"
"version": "14",
"vcRedistSignature": "245D262748012A4FE6CE8BA6C951A4C4AFBC3E5D"
},
"kotlin": {
"version": "latest"

View File

@@ -382,7 +382,8 @@
},
"postgresql": {
"signature": "698BA51AA27CC31282AACA5055E4B9190BC6C0E9",
"version": "14"
"version": "14",
"vcRedistSignature": "245D262748012A4FE6CE8BA6C951A4C4AFBC3E5D"
},
"kotlin": {
"version": "latest"