diff --git a/functions/private/Install-WinUtilProgramWinget.ps1 b/functions/private/Install-WinUtilProgramWinget.ps1 index 2aa10bae..187bb37c 100644 --- a/functions/private/Install-WinUtilProgramWinget.ps1 +++ b/functions/private/Install-WinUtilProgramWinget.ps1 @@ -59,6 +59,7 @@ Function Install-WinUtilProgramWinget { continue } Write-Host "Attempting installation with Chocolatey as a fallback method" + Install-WinUtilChoco $status = $(Start-Process -FilePath "choco" -ArgumentList "install $Program -y" -Wait -PassThru).ExitCode if($status -eq 0){ Write-Host "$Program installed successfully using Chocolatey."