diff --git a/scripts/Windows/OS/Install.ps1 b/scripts/Windows/OS/Install.ps1 index 577c7ebe..dea1ee9e 100644 --- a/scripts/Windows/OS/Install.ps1 +++ b/scripts/Windows/OS/Install.ps1 @@ -33,7 +33,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