From 6cbe9343c1223c5da36da38400ddce2f8db22684 Mon Sep 17 00:00:00 2001
From: romanitho <96626929+Romanitho@users.noreply.github.com>
Date: Tue, 9 May 2023 12:30:01 +0200
Subject: [PATCH 1/6] Activate prerelease updates on prerelease install
---
Winget-AutoUpdate-Install.ps1 | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/Winget-AutoUpdate-Install.ps1 b/Winget-AutoUpdate-Install.ps1
index 3f7b02e..e1a3ee2 100644
--- a/Winget-AutoUpdate-Install.ps1
+++ b/Winget-AutoUpdate-Install.ps1
@@ -343,7 +343,12 @@ function Install-WingetAutoUpdate {
New-ItemProperty $regPath -Name Publisher -Value "Romanitho" -Force | Out-Null
New-ItemProperty $regPath -Name URLInfoAbout -Value "https://github.com/Romanitho/Winget-AutoUpdate" -Force | Out-Null
New-ItemProperty $regPath -Name WAU_NotificationLevel -Value $NotificationLevel -Force | Out-Null
- New-ItemProperty $regPath -Name WAU_UpdatePrerelease -Value 0 -PropertyType DWord -Force | Out-Null
+ if ($WAUVersion -match "-"){
+ New-ItemProperty $regPath -Name WAU_UpdatePrerelease -Value 1 -PropertyType DWord -Force | Out-Null
+ }
+ else {
+ New-ItemProperty $regPath -Name WAU_UpdatePrerelease -Value 0 -PropertyType DWord -Force | Out-Null
+ }
New-ItemProperty $regPath -Name WAU_PostUpdateActions -Value 0 -PropertyType DWord -Force | Out-Null
New-ItemProperty $regPath -Name WAU_MaxLogFiles -Value $MaxLogFiles -PropertyType DWord -Force | Out-Null
New-ItemProperty $regPath -Name WAU_MaxLogSize -Value $MaxLogSize -PropertyType DWord -Force | Out-Null
From 9b12f60ee3d8a62ab21f443290b00f5291692da2 Mon Sep 17 00:00:00 2001
From: Romain <96626929+Romanitho@users.noreply.github.com>
Date: Tue, 9 May 2023 12:35:34 +0200
Subject: [PATCH 2/6] Update README.md (#342)
* Update README.md
* Update README.md
---
README.md | 65 +++++++++++++++++++++++++++++++++++--------------------
1 file changed, 42 insertions(+), 23 deletions(-)
diff --git a/README.md b/README.md
index 0564a9b..1d396eb 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,12 @@
+
+
# Winget-AutoUpdate (WAU)
+
+[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/Romanitho/Winget-AutoUpdate?label=Latest%20Stable%20Release&style=flat-square)](https://github.com/Romanitho/Winget-AutoUpdate/releases/latest)
+[![GitHub release (by tag)](https://img.shields.io/github/downloads/Romanitho/Winget-AutoUpdate/latest/total?label=Downloads&style=flat-square)](https://github.com/Romanitho/Winget-AutoUpdate/releases/latest)
+
+
+
This project uses the Winget tool to daily update apps (with system context) and notify users when updates are available and installed.
![image](https://user-images.githubusercontent.com/96626929/150645599-9460def4-0818-4fe9-819c-dd7081ff8447.png)
@@ -22,11 +30,8 @@ From version 1.9.0, you can choose which notification will be displayed: Full, S
### Notification language
You can easily translate toast notifications by creating your locale xml config file (and share it with us :) ).
-### Default install location
-By default, scripts and components will be placed in ProgramData location (inside a Winget-AutoUpdate folder). You can change this with script argument (Not Recommended).
-
### When does the script run?
-From version 1.9.0 (on new installations) WAU runs everyday at 6AM. You can now configure the frequency with `-UpdatesInterval` option (Daily, BiDaily, Weekly, BiWeekly or Monthly). You can also add `-UpdatesAtLogon` parameter to run at user logon and keep this option activated like previous versions (recommanded).
+From version 1.9.0 (on new installations) WAU runs everyday at 6AM. You can now configure the frequency with `-UpdatesInterval` option (Daily, BiDaily, Weekly, BiWeekly, Monthly or Never). You can also add `-UpdatesAtLogon` parameter to run at user logon (recommanded).
### Log location
You can find logs in install location, in logs folder.
@@ -51,6 +56,14 @@ To force WAU to run on metered connections anyway, run new installation with `-R
### System & user context
From version 1.15.0, WAU run with system and user contexts. This way, even apps installed on User's scope are updated. Shorcuts for manually run can also be installed.
+### Default install location
+By default, scripts and components will be placed in ProgramData location (inside a Winget-AutoUpdate folder). You can change this with script argument (Not Recommended).
+
+## GUI installation
+[WiGui](https://github.com/Romanitho/Winget-Install-GUI/) can be used to install WAU even easier:
+
+
+
## Update WAU
### Manual Update
Same process as new installation : download, unzip and run `install.bat`.
@@ -64,30 +77,12 @@ Simply uninstall it from your programs:
![image](https://user-images.githubusercontent.com/96626929/170879336-ef034956-4778-41f0-b8fd-d307b77b70a9.png)
-## GUI installation
-[WiGui](https://github.com/Romanitho/Winget-Install-GUI/) can be used to install WAU even easier:
-
-
-
## Advanced installation
You can run the `Winget-AutoUpdate-Install.ps1` script with parameters :
**-Silent**
Install Winget-AutoUpdate and prerequisites silently.
-**-MaxLogFiles**
-Specify number of allowed log files.
-Default is 3 out of 0-99:
-Setting MaxLogFiles to 0 don't delete any old archived log files.
-Setting it to 1 keeps the original one and just let it grow.
-
-**-MaxLogSize**
-Specify the size of the log file in bytes before rotating.
-Default is 1048576 = 1 MB (ca. 7500 lines)
-
-**-WingetUpdatePath**
-Specify Winget-AutoUpdate installation location. Default: `C:\ProgramData\Winget-AutoUpdate` (Recommended to leave default).
-
**-DoNotUpdate**
Do not run Winget-AutoUpdate after installation. By default, Winget-AutoUpdate is run just after installation.
@@ -155,7 +150,20 @@ Specify the update frequency: Daily (Default), BiDaily, Weekly, BiWeekly, Monthl
Specify the time of the update interval execution time. Default 6AM. (From version 1.15.0).
**-RunOnMetered**
-Run WAU on metered connection. Default No.
+Force WAU to run on metered connections. May add cellular data costs on shared connexion from smartphone for example.
+
+**-MaxLogFiles**
+Specify number of allowed log files.
+Default is 3 out of 0-99:
+Setting MaxLogFiles to 0 don't delete any old archived log files.
+Setting it to 1 keeps the original one and just let it grow.
+
+**-MaxLogSize**
+Specify the size of the log file in bytes before rotating.
+Default is 1048576 = 1 MB (ca. 7500 lines)
+
+**-WingetUpdatePath**
+Specify Winget-AutoUpdate installation location. Default: `C:\ProgramData\Winget-AutoUpdate` (Recommended to leave default).
**-Uninstall**
Remove scheduled tasks and scripts.
@@ -208,3 +216,14 @@ In some cases, you need to "unblock" the `install.bat` file (Windows Defender Sm
## Optimization
Feel free to give us any suggestions or optimizations in code and support us by adding a star :)
+
+---
+
+
+#### WAU - GitHub
+
+[![GitHub release (release name instead of tag name)](https://img.shields.io/github/v/release/Romanitho/Winget-AutoUpdate?display_name=release&include_prereleases&label=Latest%20Release&style=flat-square)](https://github.com/Romanitho/Winget-AutoUpdate/releases/)
+[![GitHub release (latest by SemVer including pre-releases)](https://img.shields.io/github/downloads-pre/Romanitho/Winget-AutoUpdate/latest/total?label=Downloads&style=flat-square)](https://github.com/Romanitho/Winget-AutoUpdate/releases/)
+[![GitHub all releases](https://img.shields.io/github/downloads/Romanitho/Winget-AutoUpdate/total?label=Total%20downloads&style=flat-square)](https://somsubhra.github.io/github-release-stats/?username=Romanitho&repository=Winget-AutoUpdate&page=1&per_page=1000)
+
+
From 0213f7d6db5cd82d013f95df5ea8626aa466d49c Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
Date: Wed, 10 May 2023 00:31:34 +0000
Subject: [PATCH 3/6] Changed version to 1.17.5-2
---
Winget-AutoUpdate/Version.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Winget-AutoUpdate/Version.txt b/Winget-AutoUpdate/Version.txt
index 9bf9e24..f1d3f81 100644
--- a/Winget-AutoUpdate/Version.txt
+++ b/Winget-AutoUpdate/Version.txt
@@ -1 +1 @@
-1.17.5-1
\ No newline at end of file
+1.17.5-2
\ No newline at end of file
From 65b9091bc3eb5fd05c1dc1dc5d7fc9bee3fc241d Mon Sep 17 00:00:00 2001
From: Romain <96626929+Romanitho@users.noreply.github.com>
Date: Thu, 18 May 2023 17:21:48 +0200
Subject: [PATCH 4/6] Updated with new permissions
---
.github/workflows/mega-linter.yml | 1 +
1 file changed, 1 insertion(+)
diff --git a/.github/workflows/mega-linter.yml b/.github/workflows/mega-linter.yml
index d3ae61f..85afb9c 100644
--- a/.github/workflows/mega-linter.yml
+++ b/.github/workflows/mega-linter.yml
@@ -11,6 +11,7 @@ on:
permissions:
contents: write
+ issues: write
pull-requests: write
env: # Comment env block if you do not want to apply fixes
From 8e86f8de82bda486c423a51e0873d75bbb6a71b6 Mon Sep 17 00:00:00 2001
From: Romain <96626929+Romanitho@users.noreply.github.com>
Date: Thu, 18 May 2023 23:03:19 +0200
Subject: [PATCH 5/6] Fix fully manual scenario
---
Winget-AutoUpdate-Install.ps1 | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/Winget-AutoUpdate-Install.ps1 b/Winget-AutoUpdate-Install.ps1
index e1a3ee2..01f24c7 100644
--- a/Winget-AutoUpdate-Install.ps1
+++ b/Winget-AutoUpdate-Install.ps1
@@ -298,7 +298,13 @@ function Install-WingetAutoUpdate {
$taskSettings = New-ScheduledTaskSettingsSet -Compatibility Win8 -StartWhenAvailable -AllowStartIfOnBatteries -DontStopIfGoingOnBatteries -ExecutionTimeLimit 03:00:00
# Set up the task, and register it
- $task = New-ScheduledTask -Action $taskAction -Principal $taskUserPrincipal -Settings $taskSettings -Trigger $taskTriggers
+ if ($taskTriggers) {
+ $task = New-ScheduledTask -Action $taskAction -Principal $taskUserPrincipal -Settings $taskSettings -Trigger $taskTriggers
+ }
+ else {
+ $task = New-ScheduledTask -Action $taskAction -Principal $taskUserPrincipal -Settings $taskSettings
+ }
+
Register-ScheduledTask -TaskName 'Winget-AutoUpdate' -InputObject $task -Force | Out-Null
if ($InstallUserContext) {
From c26fe42f5c1c0674612cd51548646330336683d3 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
Date: Fri, 19 May 2023 00:32:09 +0000
Subject: [PATCH 6/6] Changed version to 1.17.5-3
---
Winget-AutoUpdate/Version.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Winget-AutoUpdate/Version.txt b/Winget-AutoUpdate/Version.txt
index f1d3f81..7de64bc 100644
--- a/Winget-AutoUpdate/Version.txt
+++ b/Winget-AutoUpdate/Version.txt
@@ -1 +1 @@
-1.17.5-2
\ No newline at end of file
+1.17.5-3
\ No newline at end of file