Changed visual to 2022 & optimized download speed
parent
6a8624b57e
commit
a01b8de340
|
@ -130,7 +130,7 @@ function Get-WingetOutdated {
|
||||||
[string]$AvailableVersion
|
[string]$AvailableVersion
|
||||||
}
|
}
|
||||||
|
|
||||||
#Get WinGet Location to run as system
|
#Get WinGet Location
|
||||||
$WingetCmd = Get-Command winget.exe -ErrorAction SilentlyContinue
|
$WingetCmd = Get-Command winget.exe -ErrorAction SilentlyContinue
|
||||||
if ($WingetCmd){
|
if ($WingetCmd){
|
||||||
$script:upgradecmd = $WingetCmd.Source
|
$script:upgradecmd = $WingetCmd.Source
|
||||||
|
@ -144,7 +144,7 @@ function Get-WingetOutdated {
|
||||||
$script:upgradecmd = Resolve-Path "C:\Program Files\WindowsApps\Microsoft.DesktopAppInstaller_*_x64__8wekyb3d8bbwe\winget.exe" | Select-Object -ExpandProperty Path
|
$script:upgradecmd = Resolve-Path "C:\Program Files\WindowsApps\Microsoft.DesktopAppInstaller_*_x64__8wekyb3d8bbwe\winget.exe" | Select-Object -ExpandProperty Path
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
Write-Log "No Winget installed !"
|
Write-Log "Winget not installed !"
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue