Compile Winutil

This commit is contained in:
ChrisTitusTech 2024-05-10 04:15:31 +00:00 committed by github-actions[bot]
parent 84fe67f032
commit 6e201305c9

View File

@ -762,6 +762,7 @@ Function Install-WinUtilProgramWinget {
continue continue
} }
Write-Host "Attempting installation with Chocolatey as a fallback method" Write-Host "Attempting installation with Chocolatey as a fallback method"
Install-WinUtilChoco
$status = $(Start-Process -FilePath "choco" -ArgumentList "install $Program -y" -Wait -PassThru).ExitCode $status = $(Start-Process -FilePath "choco" -ArgumentList "install $Program -y" -Wait -PassThru).ExitCode
if($status -eq 0){ if($status -eq 0){
Write-Host "$Program installed successfully using Chocolatey." Write-Host "$Program installed successfully using Chocolatey."