From 6b7e30c0357a157f4621c0105563fbdc10575221 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 5b68e14a..5bb04d6b 100644 --- a/scripts/Windows/OS/Install.ps1 +++ b/scripts/Windows/OS/Install.ps1 @@ -142,10 +142,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