spell
parent
897092a7c8
commit
a173ccc052
|
@ -13,7 +13,28 @@
|
||||||
"Notif",
|
"Notif",
|
||||||
"HKLM",
|
"HKLM",
|
||||||
"MSIX",
|
"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": [
|
"ignorePaths": [
|
||||||
".github/*",
|
".github/*",
|
||||||
|
|
|
@ -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)
|
![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":
|
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)
|
![WAU Configurator Screenshot](https://github.com/Romanitho/Winget-AutoUpdate/assets/96626929/e3c3a331-1c49-40c5-8f70-e39cf9fc7fd1)
|
||||||
|
|
|
@ -92,7 +92,7 @@ function Get-WingetAppInfo ($SearchApp) {
|
||||||
#Search for winget apps
|
#Search for winget apps
|
||||||
$AppResult = & $Winget search $SearchApp --accept-source-agreements --source winget | Out-String
|
$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 "-----")) {
|
if (!($AppResult -match "-----")) {
|
||||||
Start-PopUp "No application found!"
|
Start-PopUp "No application found!"
|
||||||
Start-Sleep 2
|
Start-Sleep 2
|
||||||
|
@ -111,7 +111,7 @@ function Get-WingetAppInfo ($SearchApp) {
|
||||||
|
|
||||||
$fl = $fl - 1
|
$fl = $fl - 1
|
||||||
|
|
||||||
#Get header titles [without remove seperator]
|
#Get header titles [without remove separator]
|
||||||
$index = $lines[$fl] -split '(?<=\s)(?!\s)'
|
$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]
|
# 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
|
$nameDeclination = $($line.Substring(0, $idStart) -replace '[\u4e00-\u9fa5]', '**').Length - $line.Substring(0, $idStart).Length
|
||||||
$software.Name = $line.Substring(0, $idStart - $nameDeclination).TrimEnd()
|
$software.Name = $line.Substring(0, $idStart - $nameDeclination).TrimEnd()
|
||||||
$software.Id = $line.Substring($idStart - $nameDeclination, $versionStart - $idStart).TrimEnd()
|
$software.Id = $line.Substring($idStart - $nameDeclination, $versionStart - $idStart).TrimEnd()
|
||||||
#add formated soft to list
|
#add formatted soft to list
|
||||||
$searchList += $software
|
$searchList += $software
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -263,7 +263,7 @@ function Uninstall-App ($AppID, $AppArgs) {
|
||||||
|
|
||||||
#Function to Add app to WAU white list
|
#Function to Add app to WAU white list
|
||||||
function Add-WAUWhiteList ($AppID) {
|
function Add-WAUWhiteList ($AppID) {
|
||||||
#Check if WAU default intall path is defined
|
#Check if WAU default install path is defined
|
||||||
if ($WAUInstallLocation) {
|
if ($WAUInstallLocation) {
|
||||||
$WhiteList = "$WAUInstallLocation\included_apps.txt"
|
$WhiteList = "$WAUInstallLocation\included_apps.txt"
|
||||||
#Create included_apps.txt if it doesn't exist
|
#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 to Remove app from WAU white list
|
||||||
function Remove-WAUWhiteList ($AppID) {
|
function Remove-WAUWhiteList ($AppID) {
|
||||||
#Check if WAU default intall path exists
|
#Check if WAU default install path exists
|
||||||
$WhiteList = "$WAUInstallLocation\included_apps.txt"
|
$WhiteList = "$WAUInstallLocation\included_apps.txt"
|
||||||
if (Test-Path $WhiteList) {
|
if (Test-Path $WhiteList) {
|
||||||
Write-ToLog "-> Remove $AppID from WAU included_apps.txt"
|
Write-ToLog "-> Remove $AppID from WAU included_apps.txt"
|
||||||
|
|
|
@ -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 {
|
function Add-ScopeMachine {
|
||||||
|
|
||||||
#Get Settings path for system or current user
|
#Get Settings path for system or current user
|
||||||
|
|
|
@ -11,7 +11,7 @@ function Get-WingetOutdatedApps {
|
||||||
#Get list of available upgrades on winget format
|
#Get list of available upgrades on winget format
|
||||||
$upgradeResult = & $Winget upgrade --source winget | Out-String
|
$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 "-----")) {
|
if (!($upgradeResult -match "-----")) {
|
||||||
return "An unusual thing happened (maybe all apps are upgraded):`n$upgradeResult"
|
return "An unusual thing happened (maybe all apps are upgraded):`n$upgradeResult"
|
||||||
}
|
}
|
||||||
|
@ -28,7 +28,7 @@ function Get-WingetOutdatedApps {
|
||||||
#Get header line
|
#Get header line
|
||||||
$fl = $fl - 1
|
$fl = $fl - 1
|
||||||
|
|
||||||
#Get header titles [without remove seperator]
|
#Get header titles [without remove separator]
|
||||||
$index = $lines[$fl] -split '(?<=\s)(?!\s)'
|
$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]
|
# 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
|
#Get header line
|
||||||
$fl = $i - 1
|
$fl = $i - 1
|
||||||
|
|
||||||
#Get header titles [without remove seperator]
|
#Get header titles [without remove separator]
|
||||||
$index = $lines[$fl] -split '(?<=\s)(?!\s)'
|
$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]
|
# 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.Id = $line.Substring($idStart - $nameDeclination, $versionStart - $idStart).TrimEnd()
|
||||||
$software.Version = $line.Substring($versionStart - $nameDeclination, $availableStart - $versionStart).TrimEnd()
|
$software.Version = $line.Substring($versionStart - $nameDeclination, $availableStart - $versionStart).TrimEnd()
|
||||||
$software.AvailableVersion = $line.Substring($availableStart - $nameDeclination).TrimEnd()
|
$software.AvailableVersion = $line.Substring($availableStart - $nameDeclination).TrimEnd()
|
||||||
#add formated soft to list
|
#add formatted soft to list
|
||||||
$upgradeList += $software
|
$upgradeList += $software
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,7 +57,7 @@ function Install-Prerequisites {
|
||||||
Write-ToLog "-> Microsoft.VCLibs.140.00.UWPDesktop installed successfully." "Green"
|
Write-ToLog "-> Microsoft.VCLibs.140.00.UWPDesktop installed successfully." "Green"
|
||||||
}
|
}
|
||||||
catch {
|
catch {
|
||||||
Write-ToLog "-> Failed to intall Microsoft.VCLibs.140.00.UWPDesktop..." "Red"
|
Write-ToLog "-> Failed to install Microsoft.VCLibs.140.00.UWPDesktop..." "Red"
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
Remove-Item -Path $VCLibsFile -Force
|
Remove-Item -Path $VCLibsFile -Force
|
||||||
|
@ -79,7 +79,7 @@ function Install-Prerequisites {
|
||||||
Write-ToLog "-> Microsoft.UI.Xaml.2.8 installed successfully." "Green"
|
Write-ToLog "-> Microsoft.UI.Xaml.2.8 installed successfully." "Green"
|
||||||
}
|
}
|
||||||
catch {
|
catch {
|
||||||
Write-ToLog "-> Failed to intall Microsoft.UI.Xaml.2.8..." "Red"
|
Write-ToLog "-> Failed to install Microsoft.UI.Xaml.2.8..." "Red"
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
Remove-Item -Path $UIXamlFile -Force
|
Remove-Item -Path $UIXamlFile -Force
|
||||||
|
|
Loading…
Reference in New Issue