Install-FromManifest: fix Test-Installed -> Test-AppInstalled typo
Bug in lib v2.5 introduced 2026-05-04: WaitTimeoutSec branch called the non-existent function Test-Installed. Should be Test-AppInstalled (the actual function name elsewhere in the same file). Caught when J test ran and surfaced "The term 'Test-Installed' is not recognized" after the WaitTimeoutSec=120 fired on UDC. UDC entry then exited -1 (Process.Start failed catch block) instead of 0 (success post-detection-recheck). Functional impact was containable - dispatcher moved on to next entries - but UDC always reported FAILED. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -315,7 +315,7 @@ function Invoke-InstallerAction {
|
|||||||
Write-InstallLog " WaitTimeoutSec=$($App.WaitTimeoutSec) reached - killing wrapper, will re-check detection" 'WARN'
|
Write-InstallLog " WaitTimeoutSec=$($App.WaitTimeoutSec) reached - killing wrapper, will re-check detection" 'WARN'
|
||||||
try { $proc.Kill(); $proc.WaitForExit(5000) | Out-Null } catch {}
|
try { $proc.Kill(); $proc.WaitForExit(5000) | Out-Null } catch {}
|
||||||
Start-Sleep -Seconds 2
|
Start-Sleep -Seconds 2
|
||||||
if (Test-Installed -App $App) {
|
if (Test-AppInstalled -App $App) {
|
||||||
Write-InstallLog " detection passes post-kill - treating as success"
|
Write-InstallLog " detection passes post-kill - treating as success"
|
||||||
$exitCode = 0
|
$exitCode = 0
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user