Files
winutil/functions/private/Update-WinUtilProgramWinget.ps1
T

21 lines
511 B
PowerShell
Raw Normal View History

+3
2023-03-07 12:28:00 -08:00
Function Update-WinUtilProgramWinget {
<#
2023-10-19 17:12:55 -05:00
.SYNOPSIS
This will update all programs using Winget
+3
2023-03-07 12:28:00 -08:00
#>
[ScriptBlock]$wingetinstall = {
$host.ui.RawUI.WindowTitle = """Winget Install"""
Start-Transcript $ENV:TEMP\winget-update.log -Append
winget upgrade --all
}
$global:WinGetInstall = Start-Process -Verb runas powershell -ArgumentList "-command invoke-command -scriptblock {$wingetinstall} -argumentlist '$($ProgramsToInstall -join ",")'" -PassThru
}