winutil/functions/public/Invoke-WPFInstallUpgrade.ps1
Chris Titus 2321c071ee
Test 2023 07 27 (#934)
* Updated Edge Removal Script to the more up-to-date one. (#918)

* Update edgeremoval.bat from the original source.

* Added my modifications to the extra cleanup part

* Updates credits for Edge Removal script

* Removed "getfirefox"

* Credit to the original source

* Compile Winutil

* fix typos (#924)

* Compile Winutil

* Remove ooshutup10 "Disable search box in task bar" (#929)

* Compile Winutil

* Fix Panel Glitch and add intl

* Compile Winutil

* Fix Bluetooth services

* Compile Winutil

* fix function

---------

Co-authored-by: Antun Nitraj <antnitraj@gmail.com>
Co-authored-by: ChrisTitusTech <ChrisTitusTech@users.noreply.github.com>
Co-authored-by: AdamJedl <100023363+AdamJedl@users.noreply.github.com>
2023-08-02 19:43:52 -05:00

27 lines
991 B
PowerShell

function Invoke-WPFInstallUpgrade {
<#
.DESCRIPTION
PlaceHolder
#>
if(!(Test-WinUtilPackageManager -winget)){
Write-Host "==========================================="
Write-Host "-- Winget is not installed ---"
Write-Host "==========================================="
return
}
if(Get-WinUtilInstallerProcess -Process $global:WinGetInstall){
$msg = "Install process is currently running. Please check for a powershell window labeled 'Winget Install'"
[System.Windows.MessageBox]::Show($msg, "Winutil", [System.Windows.MessageBoxButton]::OK, [System.Windows.MessageBoxImage]::Warning)
return
}
Update-WinUtilProgramWinget
Write-Host "==========================================="
Write-Host "-- Updates started ---"
Write-Host "-- You can close this window if desired ---"
Write-Host "==========================================="
}