mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-01-17 18:27:42 -06:00
Install Choco if needed
This commit is contained in:
parent
cc02facb11
commit
5c65f32fdf
@ -59,6 +59,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."
|
||||||
|
Loading…
Reference in New Issue
Block a user