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 diff --git a/README.md b/README.md index 4bf82ca..b89f0ad 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. @@ -159,7 +154,20 @@ Specify the time of the update interval execution time. Default 6AM. (From versi Specify if user approval is needed before updating apps **-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. @@ -213,3 +221,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) + +
diff --git a/Winget-AutoUpdate-Install.ps1 b/Winget-AutoUpdate-Install.ps1 index a7a784a..b308bbd 100644 --- a/Winget-AutoUpdate-Install.ps1 +++ b/Winget-AutoUpdate-Install.ps1 @@ -352,7 +352,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 diff --git a/Winget-AutoUpdate/Version.txt b/Winget-AutoUpdate/Version.txt index 9bf9e24..7de64bc 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-3 \ No newline at end of file