Skip to content

Commit

Permalink
(chocolatey#1039) Improved flow for cases when chocolatey is not inst…
Browse files Browse the repository at this point in the history
…alled
  • Loading branch information
LeaDevelop committed Oct 28, 2024
1 parent d658ca2 commit 476251c
Showing 1 changed file with 1 addition and 2 deletions.
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

0 comments on commit 476251c

Please sign in to comment.