diff --git a/scripts/Windows/OS/Install.ps1 b/scripts/Windows/OS/Install.ps1 index 17bc2e4e..9794a09c 100644 --- a/scripts/Windows/OS/Install.ps1 +++ b/scripts/Windows/OS/Install.ps1 @@ -32,7 +32,7 @@ function Start-InstallationLoop { if (-not (Get-Stage)) { Set-Stage [SetupStage]::Initialize; break; - } elseif (Get-Stage -eq [SetupStage]::Initialize) { + } elseif ((Get-Stage) -eq ([SetupStage]::Initialize)) { if (-not ((Get-Command "choco") -and (Get-Command "refreshenv"))) { Invoke-Hook "Install-Chocolatey" -Fallback { # Install chocolatey