mirror of
https://github.com/ChrisTitusTech/winutil
synced 2026-06-04 14:17:27 +00:00
0e061692ba
* Update Invoke-WPFInstallUpgrade.ps1 * Update Test-WinUtilPackageManager.ps1 * Update Test-WinUtilPackageManager.ps1
22 lines
1.0 KiB
PowerShell
22 lines
1.0 KiB
PowerShell
function Invoke-WPFInstallUpgrade {
|
|
if ($sync.ChocoRadioButton.IsChecked) {
|
|
Install-WinUtilChoco # Ensure Chocolatey is installed before upgrading
|
|
|
|
Write-Host "==========================================="
|
|
Write-Host "-- Updates started ---"
|
|
Write-Host "-- You can close this window if desired ---"
|
|
Write-Host "==========================================="
|
|
|
|
Start-Process -FilePath powershell.exe -ArgumentList 'choco upgrade all -y'
|
|
} else {
|
|
Install-WinUtilWinget # Ensure WinGet is installed before upgrading
|
|
|
|
Write-Host "==========================================="
|
|
Write-Host "-- Updates started ---"
|
|
Write-Host "-- You can close this window if desired ---"
|
|
Write-Host "==========================================="
|
|
|
|
Start-Process -FilePath powershell.exe -ArgumentList '-NoExit winget upgrade --all --include-unknown --silent --accept-source-agreements --accept-package-agreements'
|
|
}
|
|
}
|