Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(#1039) Improved flow for cases when chocolatey is not installed #1092

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,7 @@ Before starting, make sure you install Chocolatey Server on separate servers.
}

if ($null -eq (Get-Command -Name 'choco.exe' -ErrorAction SilentlyContinue)) {
Write-Warning "Chocolatey not installed. Cannot install standard packages."
Exit 1
Write-Error "Chocolatey not installed. Cannot install standard packages." -ErrorAction Stop
}

# Install Chocolatey.Server prereqs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,7 @@ function New-AclObject {
}

if ($null -eq (Get-Command -Name 'choco.exe' -ErrorAction SilentlyContinue)) {
Write-Warning "Chocolatey not installed. Cannot install standard packages."
Exit 1
Write-Error "Chocolatey not installed. Cannot install standard packages." -ErrorAction Stop
}
# Install Chocolatey.Server prereqs
choco install IIS-WebServer --source windowsfeatures
Expand Down