From 0950dcf4ff3cf71f28b5cb49f1755e3dd3a13972 Mon Sep 17 00:00:00 2001 From: Paulo Janotti Date: Tue, 4 Mar 2025 09:54:36 -0800 Subject: [PATCH] Fix: display msiexec exit code on install.ps1 --- packaging/installer/install.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/installer/install.ps1 b/packaging/installer/install.ps1 index 38967f4332..2f45fe0245 100644 --- a/packaging/installer/install.ps1 +++ b/packaging/installer/install.ps1 @@ -398,7 +398,7 @@ function install_msi([string]$path) { $startTime = Get-Date $proc = (Start-Process msiexec.exe -Wait -PassThru -ArgumentList "/i `"$path`" /qn /norestart $msi_public_properties") if ($proc.ExitCode -ne 0 -and $proc.ExitCode -ne 3010) { - Write-Warning "The installer failed with error code ${proc.ExitCode}." + Write-Warning "The installer failed with error code $($proc.ExitCode)." try { $events = (Get-WinEvent -ProviderName "MsiInstaller" | Where-Object { $_.TimeCreated -ge $startTime }) ForEach ($event in $events) {