From 5c65f32fdf78671c6a4cb1bc5dae27a428a61532 Mon Sep 17 00:00:00 2001 From: Chris Titus Date: Thu, 9 May 2024 23:14:54 -0700 Subject: [PATCH] Install Choco if needed --- functions/private/Install-WinUtilProgramWinget.ps1 | 1 + 1 file changed, 1 insertion(+) 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."