Skip to content

Commit

Permalink
Fix: display msiexec exit code on install.ps1 (#5948)
Browse files Browse the repository at this point in the history
  • Loading branch information
pjanotti authored Mar 5, 2025
1 parent e586a6f commit e8b714c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packaging/installer/install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e8b714c

Please sign in to comment.