@@ -97,6 +97,38 @@ stages:
9797 cat $(ParamsOutputFile)
9898 displayName: Display Mobilize Params File
9999
100+ # Lists installed software & versions (registry + winget/choco if present)
101+ - powershell : |
102+ Write-Host "=== Installed Programs (Registry: 64-bit & 32-bit) ==="
103+ $paths = @(
104+ 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*', # 64-bit
105+ 'HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*' # 32-bit
106+ )
107+ $items = foreach ($p in $paths) {
108+ Get-ItemProperty -Path $p -ErrorAction SilentlyContinue |
109+ Where-Object { $_.DisplayName } |
110+ Select-Object @{n='Name';e={$_.DisplayName}},
111+ @{n='Version';e={$_.DisplayVersion}},
112+ @{n='Publisher';e={$_.Publisher}},
113+ @{n='InstallLocation';e={$_.InstallLocation}}
114+ }
115+ $items | Sort-Object Name | Format-Table -AutoSize
116+
117+ Write-Host "`n=== Winget packages (if available) ==="
118+ if (Get-Command winget -ErrorAction SilentlyContinue) {
119+ winget list --accept-source-agreements
120+ } else {
121+ Write-Host "winget not available on this agent."
122+ }
123+
124+ Write-Host "`n=== Chocolatey packages (if available) ==="
125+ if (Get-Command choco -ErrorAction SilentlyContinue) {
126+ choco list --local-only
127+ } else {
128+ Write-Host "Chocolatey not available on this agent."
129+ }
130+ displayName: "Windows: Display installed software"
131+
100132 - powershell : |
101133 $(test_venv.bin_dir)/mobilize -vv execute -p $(test_venv.bin_dir)\..\Lib\site-packages\rtos_oetest\mobilize_plans\rtos_oetest\snac\pr\snac_pr_provision_and_test.yaml.mako -a $(ParamsOutputFile) -o $(CompiledMobilizePlan)
102134 displayName: Execute Mobilize Plan
0 commit comments