pull/681/head
Romain 2024-09-02 16:39:22 +02:00
parent 897092a7c8
commit a173ccc052
7 changed files with 36 additions and 15 deletions

25
.github/cspell.json vendored
View File

@ -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"
]
}
}

View File

@ -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)

View File

@ -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
}
}

View File

@ -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"

View File

@ -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

View File

@ -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
}
}

View File

@ -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