From d17df5dff0018d9b8262f14087e70e18294d2bbe Mon Sep 17 00:00:00 2001 From: Fabian Seitz Date: Mon, 14 Oct 2024 07:44:25 +0200 Subject: [PATCH 1/3] 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 54b6e9c..bdc8447 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 585f87b..9d672ba 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/3] Change winget-install links --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index bdc8447..1cb0f4d 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:
From 53ee8b2638dff0220b4108ae892518052215b3fb Mon Sep 17 00:00:00 2001 From: Fabian Seitz Date: Fri, 18 Oct 2024 14:20:07 +0200 Subject: [PATCH 3/3] Update README.md --- README.md | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 4ba78c9..a4e7aeb 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,12 @@ Just download latest release [WAU.msi](https://github.com/Romanitho/Winget-AutoU ![1](https://github.com/user-attachments/assets/8a3a656d-f825-4cea-b971-5f775a6c7ba8) ![2](https://github.com/user-attachments/assets/46913e03-8604-43f5-8bca-129d1e714e45) +### Use winget to install WAU +The following command will install WAU through winget itself in the newest version available. + +``` +winget install Romanitho.Winget-AutoUpdate +``` ## Configurations ### Keep some apps out of Winget-AutoUpdate @@ -101,17 +107,6 @@ 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-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"" -``` **MODSPATH**
Get Mods from external Path (**URL/UNC/Local/AzureBlob**) - download/copy to `mods` in Winget-AutoUpdate installation location if external mods are newer.
@@ -176,7 +171,11 @@ Default is 1048576 = 1 MB (ca. 7500 lines) **INSTALLDIR**
Specify Winget-AutoUpdate installation location. Default: `C:\Program Files\Winget-AutoUpdate` (Recommended to leave default). - +### Deploy with 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 "C:\Program Files\Winget-AutoUpdate\Winget-Install.ps1" -AppIDs "Romanitho.Winget-AutoUpdate --scope machine --override \"/qn RUN_WAU=YES USERCONTEXT=1 STARTMENUSHORTCUT=1 NOTIFICATIONLEVEL=SuccessOnly UPDATESINTERVAL=Daily"" +``` ## Custom script (Mods for WAU) **Mods for WAU** allows you to craft a script to do whatever you like via `_WAU-mods.ps1` in the **mods** folder.