From 5e0f5286161b4dfbc655d9267a40ae6f455bfe55 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Fri, 9 Aug 2024 02:24:59 +0200 Subject: [PATCH] Detect installation properly --- scripts/Windows/OS/Install.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/Windows/OS/Install.ps1 b/scripts/Windows/OS/Install.ps1 index b153f114..20ccce95 100644 --- a/scripts/Windows/OS/Install.ps1 +++ b/scripts/Windows/OS/Install.ps1 @@ -141,10 +141,10 @@ $null = New-Module { $arguments = [hashtable]@{ }; if ($Action) { - $install = $true; + $install = ($Action -eq ([InstallerAction]::Install)); $null = $arguments.Add("action", $Action); } else { - $install = ($Action -eq ([InstallerAction]::Install)); + $install = $true; } # Drivers