From d80b5c94827ba4e5e055e93d7539ac1d2ba7dc5e Mon Sep 17 00:00:00 2001 From: Romuald Lemesle Date: Fri, 6 Mar 2026 16:01:53 +0100 Subject: [PATCH 1/3] [agent] fix(installer): improve Windows PS5.1 installation reliability --- installer/windows/agent-installer-service-user.ps1 | 3 +-- installer/windows/agent-installer-session-user.ps1 | 3 +-- installer/windows/agent-installer.ps1 | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/installer/windows/agent-installer-service-user.ps1 b/installer/windows/agent-installer-service-user.ps1 index 18340a29..0e18396e 100644 --- a/installer/windows/agent-installer-service-user.ps1 +++ b/installer/windows/agent-installer-service-user.ps1 @@ -81,8 +81,7 @@ try { echo "OpenAEV agent has been successfully installed" } catch { echo "Installation failed" - if ((Get-Host).Version.Major -lt 7) { throw "PowerShell 7 or higher is required for installation" } - else { echo $_ } + throw $_ } finally { Start-Sleep -Seconds 2 rm -force ./agent-installer-service-user.exe; diff --git a/installer/windows/agent-installer-session-user.ps1 b/installer/windows/agent-installer-session-user.ps1 index a7fc2c10..4fce58e2 100644 --- a/installer/windows/agent-installer-session-user.ps1 +++ b/installer/windows/agent-installer-session-user.ps1 @@ -46,8 +46,7 @@ try { echo "OpenAEV agent has been successfully installed" } catch { echo "Installation failed" - if ((Get-Host).Version.Major -lt 7) { throw "PowerShell 7 or higher is required for installation" } - else { echo $_ } + throw $_ } finally { Start-Sleep -Seconds 2 rm -force ./agent-installer-session-user.exe; diff --git a/installer/windows/agent-installer.ps1 b/installer/windows/agent-installer.ps1 index 3efcd9a8..f0e16227 100644 --- a/installer/windows/agent-installer.ps1 +++ b/installer/windows/agent-installer.ps1 @@ -25,8 +25,7 @@ try { echo "OpenAEV agent has been successfully installed" } catch { echo "Installation failed" - if ((Get-Host).Version.Major -lt 7) { throw "PowerShell 7 or higher is required for installation" } - else { echo $_ } + throw $_ } finally { Start-Sleep -Seconds 2 rm -force ./openaev-installer.exe; From 6b9afbc42e2be0b2453cebe39f3c78f5d8a24233 Mon Sep 17 00:00:00 2001 From: Romuald Lemesle Date: Fri, 6 Mar 2026 16:33:01 +0100 Subject: [PATCH 2/3] [agent] fix(installer): improve Windows PS5.1 installation reliability --- installer/windows/agent-installer-service-user.ps1 | 1 + installer/windows/agent-installer-session-user.ps1 | 1 + installer/windows/agent-installer.ps1 | 1 + 3 files changed, 3 insertions(+) diff --git a/installer/windows/agent-installer-service-user.ps1 b/installer/windows/agent-installer-service-user.ps1 index 0e18396e..77fd9d94 100644 --- a/installer/windows/agent-installer-service-user.ps1 +++ b/installer/windows/agent-installer-service-user.ps1 @@ -81,6 +81,7 @@ try { echo "OpenAEV agent has been successfully installed" } catch { echo "Installation failed" + echo "Note: PowerShell 7 or higher is recommended. If the issue persists, consider upgrading." throw $_ } finally { Start-Sleep -Seconds 2 diff --git a/installer/windows/agent-installer-session-user.ps1 b/installer/windows/agent-installer-session-user.ps1 index 4fce58e2..486821ba 100644 --- a/installer/windows/agent-installer-session-user.ps1 +++ b/installer/windows/agent-installer-session-user.ps1 @@ -46,6 +46,7 @@ try { echo "OpenAEV agent has been successfully installed" } catch { echo "Installation failed" + echo "Note: PowerShell 7 or higher is recommended. If the issue persists, consider upgrading." throw $_ } finally { Start-Sleep -Seconds 2 diff --git a/installer/windows/agent-installer.ps1 b/installer/windows/agent-installer.ps1 index f0e16227..ca9bc9ff 100644 --- a/installer/windows/agent-installer.ps1 +++ b/installer/windows/agent-installer.ps1 @@ -25,6 +25,7 @@ try { echo "OpenAEV agent has been successfully installed" } catch { echo "Installation failed" + echo "Note: PowerShell 7 or higher is recommended. If the issue persists, consider upgrading." throw $_ } finally { Start-Sleep -Seconds 2 From 23d0867b31befe4e006cc5aa291ca027a03838b1 Mon Sep 17 00:00:00 2001 From: Romuald Lemesle Date: Fri, 6 Mar 2026 16:38:44 +0100 Subject: [PATCH 3/3] [agent] fix(installer): improve Windows PS5.1 installation reliability --- installer/windows/agent-installer-service-user.ps1 | 2 +- installer/windows/agent-installer-session-user.ps1 | 2 +- installer/windows/agent-installer.ps1 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/installer/windows/agent-installer-service-user.ps1 b/installer/windows/agent-installer-service-user.ps1 index 77fd9d94..49e09c62 100644 --- a/installer/windows/agent-installer-service-user.ps1 +++ b/installer/windows/agent-installer-service-user.ps1 @@ -82,7 +82,7 @@ try { } catch { echo "Installation failed" echo "Note: PowerShell 7 or higher is recommended. If the issue persists, consider upgrading." - throw $_ + echo $_ } finally { Start-Sleep -Seconds 2 rm -force ./agent-installer-service-user.exe; diff --git a/installer/windows/agent-installer-session-user.ps1 b/installer/windows/agent-installer-session-user.ps1 index 486821ba..d4ff7c8f 100644 --- a/installer/windows/agent-installer-session-user.ps1 +++ b/installer/windows/agent-installer-session-user.ps1 @@ -47,7 +47,7 @@ try { } catch { echo "Installation failed" echo "Note: PowerShell 7 or higher is recommended. If the issue persists, consider upgrading." - throw $_ + echo $_ } finally { Start-Sleep -Seconds 2 rm -force ./agent-installer-session-user.exe; diff --git a/installer/windows/agent-installer.ps1 b/installer/windows/agent-installer.ps1 index ca9bc9ff..62e9a273 100644 --- a/installer/windows/agent-installer.ps1 +++ b/installer/windows/agent-installer.ps1 @@ -26,7 +26,7 @@ try { } catch { echo "Installation failed" echo "Note: PowerShell 7 or higher is recommended. If the issue persists, consider upgrading." - throw $_ + echo $_ } finally { Start-Sleep -Seconds 2 rm -force ./openaev-installer.exe;