diff --git a/Sources/Winget-AutoUpdate/Winget-Upgrade.ps1 b/Sources/Winget-AutoUpdate/Winget-Upgrade.ps1 index 26875b6f..8bd14575 100644 --- a/Sources/Winget-AutoUpdate/Winget-Upgrade.ps1 +++ b/Sources/Winget-AutoUpdate/Winget-Upgrade.ps1 @@ -160,7 +160,7 @@ if (Test-Network) { #Compare if ((Compare-SemVer -Version1 $WAUCurrentVersion -Version2 $WAUAvailableVersion) -lt 0) { #If new version is available, update it - Write-ToLog "WAU Available version: $WAUAvailableVersion" "DarkYellow" + Write-ToLog "Available WAU version: $WAUAvailableVersion" "DarkYellow" Update-WAU } else { @@ -292,7 +292,7 @@ if (Test-Network) { #Trick under user context when -BypassListForUsers is used if ($IsSystem -eq $false -and $WAUConfig.WAU_BypassListForUsers -eq 1) { - Write-ToLog "Bypass system list in user context is Enabled." + Write-ToLog "Bypassing the system list in user context is Enabled." $UseWhiteList = $false $toSkip = $null } @@ -303,7 +303,7 @@ if (Test-Network) { foreach ($app in $outdated) { #if current app version is unknown, skip it if ($($app.Version) -eq "Unknown") { - Write-ToLog "$($app.Name) : Skipped upgrade because current version is 'Unknown'" "Gray" + Write-ToLog "$($app.Name) : Skipped upgrade because the current version is 'Unknown'" "Gray" } #if app is in "include list", update it elseif ($toUpdate -contains $app.Id) { @@ -311,7 +311,7 @@ if (Test-Network) { } #if app with wildcard is in "include list", update it elseif ($toUpdate | Where-Object { $app.Id -like $_ }) { - Write-ToLog "$($app.Name) is wildcard in the include list." + Write-ToLog "$($app.Name) is wildcarded in the include list." Update-App $app -src $Script:WingetSourceCustom } #else, skip it @@ -326,7 +326,7 @@ if (Test-Network) { foreach ($app in $outdated) { #if current app version is unknown, skip it if ($($app.Version) -eq "Unknown") { - Write-ToLog "$($app.Name) : Skipped upgrade because current version is 'Unknown'" "Gray" + Write-ToLog "$($app.Name) : Skipped upgrade because the current version is 'Unknown'" "Gray" } #if app is in "excluded list", skip it elseif ($toSkip -contains $app.Id) { @@ -334,7 +334,7 @@ if (Test-Network) { } #if app with wildcard is in "excluded list", skip it elseif ($toSkip | Where-Object { $app.Id -like $_ }) { - Write-ToLog "$($app.Name) : Skipped upgrade because it is *wildcard* in the excluded app list" "Gray" + Write-ToLog "$($app.Name) : Skipped upgrade because it is *wildcarded* in the excluded app list" "Gray" } # else, update it else { @@ -344,12 +344,12 @@ if (Test-Network) { } if ($InstallOK -gt 0) { - Write-ToLog "$InstallOK apps updated ! No more update." "Green" + Write-ToLog "$InstallOK apps updated! No more updates." "Green" } } if ($InstallOK -eq 0 -or !$InstallOK) { - Write-ToLog "No new update." "Green" + Write-ToLog "No new updates." "Green" } # Test if _WAU-mods-postsys.ps1 exists: Mods for WAU (postsys) - if Network is active/any Winget is installed/running as SYSTEM _after_ SYSTEM updates @@ -382,8 +382,8 @@ if (Test-Network) { } } else { - Write-ToLog "Critical: Winget not installed or detected, exiting..." "red" - New-Item "$WorkingDir\logs\error.txt" -Value "Winget not installed or detected" -Force + Write-ToLog "Critical: Winget is not installed or detected, exiting..." "red" + New-Item "$WorkingDir\logs\error.txt" -Value "Winget is not installed or detected" -Force Write-ToLog "End of process!" "Cyan" Exit 1 }