From d17df5dff0018d9b8262f14087e70e18294d2bbe Mon Sep 17 00:00:00 2001 From: Fabian Seitz Date: Mon, 14 Oct 2024 07:44:25 +0200 Subject: [PATCH 1/2] Add WAU winget informations --- README.md | 12 ++++++++++++ .../config/default_excluded_apps.txt | 1 + 2 files changed, 13 insertions(+) diff --git a/README.md b/README.md index 54b6e9c7..bdc8447e 100644 --- a/README.md +++ b/README.md @@ -100,6 +100,18 @@ Instead you must escape **every** special character (notice the `%` escape too) If `-ListPath` is set to **GPO** the Black/White List can be managed from within the GPO itself under **Application GPO Blacklist**/**Application GPO Whitelist**. Thanks to [Weatherlights](https://github.com/Weatherlights) in [#256 (reply in thread)](https://github.com/Romanitho/Winget-AutoUpdate/discussions/256#discussioncomment-4710599)! +### Use winget to install WAU +The following command will install WAU through winget itself in the newest version available. + +``` +winget install Romanitho.Winget-AutoUpdate +``` + +You can use [Winget-Install](https://github.com/Romanitho/Winget-Install) to deploy the package for example in Intune: +``` +"%systemroot%\sysnative\WindowsPowerShell\v1.0\powershell.exe" -noprofile -executionpolicy bypass -file winget-install.ps1 -AppIDs "Romanitho.Winget-AutoUpdate --scope machine --override \"/qn RUN_WAU=YES USERCONTEXT=1 STARTMENUSHORTCUT=1 NOTIFICATIONLEVEL=SuccessOnly UPDATESINTERVAL=Daily"" +``` + **MODSPATH**
Get Mods from external Path (**URL/UNC/Local/AzureBlob**) - download/copy to `mods` in Winget-AutoUpdate installation location if external mods are newer.
For **URL**: This requires a site directory with **Directory Listing Enabled** and no index page overriding the listing of files (or an index page with href listing of all the **Mods** to be downloaded): diff --git a/Sources/Winget-AutoUpdate/config/default_excluded_apps.txt b/Sources/Winget-AutoUpdate/config/default_excluded_apps.txt index 585f87b4..9d672ba3 100644 --- a/Sources/Winget-AutoUpdate/config/default_excluded_apps.txt +++ b/Sources/Winget-AutoUpdate/config/default_excluded_apps.txt @@ -7,3 +7,4 @@ Microsoft.Teams* Mozilla.Firefox* Opera.Opera* TeamViewer.TeamViewer* +Romanitho.Winget-AutoUpdate \ No newline at end of file From 670147e63256238f990eef0eb978785d74b87d3f Mon Sep 17 00:00:00 2001 From: Fabian Seitz Date: Mon, 14 Oct 2024 18:40:34 +0200 Subject: [PATCH 2/2] Change winget-install links --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index bdc8447e..1cb0f4d2 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ WAU runs ,by default, at logon. You can configure the frequency with options (Da ### Log location You can find logs in install location, in logs folder.
If **Intune Management Extension** is installed, a **SymLink** (WAU-updates.log) is created under **C:\ProgramData\Microsoft\IntuneManagementExtension\Logs**
-If you are deploying winget Apps with [Winget-Install](https://github.com/Romanitho/Winget-Install) a **SymLink** (WAU-install.log) is also created under **C:\ProgramData\Microsoft\IntuneManagementExtension\Logs** +If you are deploying winget Apps with [Winget-Install](https://github.com/Romanitho/Winget-AutoUpdate/blob/main/Sources/Winget-AutoUpdate/Winget-Install.ps1) a **SymLink** (WAU-install.log) is also created under **C:\ProgramData\Microsoft\IntuneManagementExtension\Logs** ### "Unknown" App version As explained in this [post](https://github.com/microsoft/winget-cli/issues/1255), Winget cannot detect the current version of some installed apps. We decided to skip managing these apps with WAU to avoid retries each time WAU runs: @@ -107,7 +107,7 @@ The following command will install WAU through winget itself in the newest versi winget install Romanitho.Winget-AutoUpdate ``` -You can use [Winget-Install](https://github.com/Romanitho/Winget-Install) to deploy the package for example in Intune: +You can use [Winget-Install](https://github.com/Romanitho/Winget-AutoUpdate/blob/main/Sources/Winget-AutoUpdate/Winget-Install.ps1) to deploy the package for example in Intune: ``` "%systemroot%\sysnative\WindowsPowerShell\v1.0\powershell.exe" -noprofile -executionpolicy bypass -file winget-install.ps1 -AppIDs "Romanitho.Winget-AutoUpdate --scope machine --override \"/qn RUN_WAU=YES USERCONTEXT=1 STARTMENUSHORTCUT=1 NOTIFICATIONLEVEL=SuccessOnly UPDATESINTERVAL=Daily"" ``` @@ -197,7 +197,7 @@ The **-install** mod will be used for upgrades too if **-upgrade** doesn't exist > Example:
If you want to run a script that removes the shortcut from **%PUBLIC%\Desktop** (we don't want to fill the desktop with shortcuts our users can't delete) just after installing **Acrobat Reader DC** (32-bit), prepare a powershell script that removes the Public Desktop shortcut **Acrobat Reader DC.lnk** and name your script like this: `Adobe.Acrobat.Reader.32-bit-installed.ps1` and put it in the **mods** folder. -You can find more information on [Winget-Install Repo](https://github.com/Romanitho/Winget-Install#custom-mods), as it's a related feature.
+You can find more information on [Winget-Install Repo](https://github.com/Romanitho/Winget-AutoUpdate?tab=readme-ov-file#custom-script-mods-for-wau), as it's a related feature.
Read more in the `README.md` under the directory **mods**. Share your mods with the community: