diff --git a/.github/cspell.json b/.github/cspell.json index e974314..5993535 100644 --- a/.github/cspell.json +++ b/.github/cspell.json @@ -13,7 +13,28 @@ "Notif", "HKLM", "MSIX", - "msixbundle" + "msixbundle", + "notinstalled", + "norestart", + "wekyb*", + "azcopy*", + "Destinationpath", + "Redistributable", + "redist", + "tasktrigger", + "Dont", + "Listpath", + "ncsi", + "msftconnecttest", + "connecttest", + "Balise", + "logfile", + "Uninst", + "inputobject", + "msiexec", + "VERYSILENT", + "SUPPRESSMSGBOXES", + "subfolders" ], "ignorePaths": [ ".github/*", @@ -25,4 +46,4 @@ "*.csv", "*.txt" ] -} +} \ No newline at end of file diff --git a/README.md b/README.md index febfc12..d61b94d 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ This project uses the Winget tool to daily update apps (with system context) and ![image](https://user-images.githubusercontent.com/96626929/150645599-9460def4-0818-4fe9-819c-dd7081ff8447.png) -## Intallation +## installation Just [download latest release (WAU-Configurator.zip)](https://github.com/Romanitho/Winget-AutoUpdate/releases/latest/download/WAU-Configurator.zip), unzip, run "WAU Configurator": ![WAU Configurator Screenshot](https://github.com/Romanitho/Winget-AutoUpdate/assets/96626929/e3c3a331-1c49-40c5-8f70-e39cf9fc7fd1) diff --git a/Sources/WAU Configurator.bat b/Sources/WAU Configurator.bat index 2532989..958b549 100644 --- a/Sources/WAU Configurator.bat +++ b/Sources/WAU Configurator.bat @@ -92,7 +92,7 @@ function Get-WingetAppInfo ($SearchApp) { #Search for winget apps $AppResult = & $Winget search $SearchApp --accept-source-agreements --source winget | Out-String - #Start Convertion of winget format to an array. Check if "-----" exists + #Start Conversion of winget format to an array. Check if "-----" exists if (!($AppResult -match "-----")) { Start-PopUp "No application found!" Start-Sleep 2 @@ -111,7 +111,7 @@ function Get-WingetAppInfo ($SearchApp) { $fl = $fl - 1 - #Get header titles [without remove seperator] + #Get header titles [without remove separator] $index = $lines[$fl] -split '(?<=\s)(?!\s)' # Line $fl has the header, we can find char where we find ID and Version [and manage non latin characters] @@ -129,7 +129,7 @@ function Get-WingetAppInfo ($SearchApp) { $nameDeclination = $($line.Substring(0, $idStart) -replace '[\u4e00-\u9fa5]', '**').Length - $line.Substring(0, $idStart).Length $software.Name = $line.Substring(0, $idStart - $nameDeclination).TrimEnd() $software.Id = $line.Substring($idStart - $nameDeclination, $versionStart - $idStart).TrimEnd() - #add formated soft to list + #add formatted soft to list $searchList += $software } } diff --git a/Sources/Winget-AutoUpdate/Winget-Install.ps1 b/Sources/Winget-AutoUpdate/Winget-Install.ps1 index ec24e6f..77030be 100644 --- a/Sources/Winget-AutoUpdate/Winget-Install.ps1 +++ b/Sources/Winget-AutoUpdate/Winget-Install.ps1 @@ -263,7 +263,7 @@ function Uninstall-App ($AppID, $AppArgs) { #Function to Add app to WAU white list function Add-WAUWhiteList ($AppID) { - #Check if WAU default intall path is defined + #Check if WAU default install path is defined if ($WAUInstallLocation) { $WhiteList = "$WAUInstallLocation\included_apps.txt" #Create included_apps.txt if it doesn't exist @@ -281,7 +281,7 @@ function Add-WAUWhiteList ($AppID) { #Function to Remove app from WAU white list function Remove-WAUWhiteList ($AppID) { - #Check if WAU default intall path exists + #Check if WAU default install path exists $WhiteList = "$WAUInstallLocation\included_apps.txt" if (Test-Path $WhiteList) { Write-ToLog "-> Remove $AppID from WAU included_apps.txt" diff --git a/Sources/Winget-AutoUpdate/functions/Add-ScopeMachine.ps1 b/Sources/Winget-AutoUpdate/functions/Add-ScopeMachine.ps1 index 8b2785e..5b65944 100644 --- a/Sources/Winget-AutoUpdate/functions/Add-ScopeMachine.ps1 +++ b/Sources/Winget-AutoUpdate/functions/Add-ScopeMachine.ps1 @@ -1,4 +1,4 @@ -#Function to configure the prefered scope option as Machine +#Function to configure the preferred scope option as Machine function Add-ScopeMachine { #Get Settings path for system or current user diff --git a/Sources/Winget-AutoUpdate/functions/Get-WingetOutdatedApps.ps1 b/Sources/Winget-AutoUpdate/functions/Get-WingetOutdatedApps.ps1 index e0f9284..f683d4c 100644 --- a/Sources/Winget-AutoUpdate/functions/Get-WingetOutdatedApps.ps1 +++ b/Sources/Winget-AutoUpdate/functions/Get-WingetOutdatedApps.ps1 @@ -11,7 +11,7 @@ function Get-WingetOutdatedApps { #Get list of available upgrades on winget format $upgradeResult = & $Winget upgrade --source winget | Out-String - #Start Convertion of winget format to an array. Check if "-----" exists (Winget Error Handling) + #Start Conversion of winget format to an array. Check if "-----" exists (Winget Error Handling) if (!($upgradeResult -match "-----")) { return "An unusual thing happened (maybe all apps are upgraded):`n$upgradeResult" } @@ -28,7 +28,7 @@ function Get-WingetOutdatedApps { #Get header line $fl = $fl - 1 - #Get header titles [without remove seperator] + #Get header titles [without remove separator] $index = $lines[$fl] -split '(?<=\s)(?!\s)' # Line $fl has the header, we can find char where we find ID and Version [and manage non latin characters] @@ -44,7 +44,7 @@ function Get-WingetOutdatedApps { #Get header line $fl = $i - 1 - #Get header titles [without remove seperator] + #Get header titles [without remove separator] $index = $lines[$fl] -split '(?<=\s)(?!\s)' # Line $fl has the header, we can find char where we find ID and Version [and manage non latin characters] @@ -61,7 +61,7 @@ function Get-WingetOutdatedApps { $software.Id = $line.Substring($idStart - $nameDeclination, $versionStart - $idStart).TrimEnd() $software.Version = $line.Substring($versionStart - $nameDeclination, $availableStart - $versionStart).TrimEnd() $software.AvailableVersion = $line.Substring($availableStart - $nameDeclination).TrimEnd() - #add formated soft to list + #add formatted soft to list $upgradeList += $software } } diff --git a/Sources/Winget-AutoUpdate/functions/Install-Prerequisites.ps1 b/Sources/Winget-AutoUpdate/functions/Install-Prerequisites.ps1 index bc37a04..3be9bc1 100644 --- a/Sources/Winget-AutoUpdate/functions/Install-Prerequisites.ps1 +++ b/Sources/Winget-AutoUpdate/functions/Install-Prerequisites.ps1 @@ -57,7 +57,7 @@ function Install-Prerequisites { Write-ToLog "-> Microsoft.VCLibs.140.00.UWPDesktop installed successfully." "Green" } catch { - Write-ToLog "-> Failed to intall Microsoft.VCLibs.140.00.UWPDesktop..." "Red" + Write-ToLog "-> Failed to install Microsoft.VCLibs.140.00.UWPDesktop..." "Red" } finally { Remove-Item -Path $VCLibsFile -Force @@ -79,7 +79,7 @@ function Install-Prerequisites { Write-ToLog "-> Microsoft.UI.Xaml.2.8 installed successfully." "Green" } catch { - Write-ToLog "-> Failed to intall Microsoft.UI.Xaml.2.8..." "Red" + Write-ToLog "-> Failed to install Microsoft.UI.Xaml.2.8..." "Red" } finally { Remove-Item -Path $UIXamlFile -Force