Skip to content

Commit 7d00461

Browse files
committed
test: validate MSI at its authored install path
1 parent cfca648 commit 7d00461

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,14 @@ jobs:
110110
}
111111
}
112112
113-
$msiRoot = Join-Path $env:RUNNER_TEMP "msi-install"
113+
# Exercise the real per-machine directory authored in Package.wxs. Overriding a
114+
# directory property from msiexec does not validate the installer's production path
115+
# and can be ignored during maintenance-mode directory resolution.
116+
$msiRoot = Join-Path $env:ProgramFiles "MissionPlannerAvalonia"
114117
$installLog = Join-Path $env:RUNNER_TEMP "msi-install.log"
115118
try {
116119
$process = Start-Process msiexec.exe -Wait -PassThru -ArgumentList @(
117-
'/i', $msi.FullName, '/qn', '/norestart',
118-
"INSTALLFOLDER=$msiRoot", '/L*V', $installLog
120+
'/i', $msi.FullName, '/qn', '/norestart', '/L*V', $installLog
119121
)
120122
if ($process.ExitCode -ne 0) {
121123
Get-Content $installLog -Tail 200

0 commit comments

Comments
 (0)