You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+40-8Lines changed: 40 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@ List and Mods folder content will be copied to WAU install location:
42
42
43
43
44
44
### Notification Level
45
-
You can choose which notification will be displayed: `Full`, `Success only` or `None`.
45
+
You can choose which notification will be displayed: `Full`, `Success only`, `Errors only` or `None`.
46
46
47
47
### Notification language
48
48
You can easily translate toast notifications by creating your locale xml config file (and share it with us :) ).
@@ -147,7 +147,7 @@ Set `DESKTOPSHORTCUT=1` to create a shortcut for user interaction on the Desktop
147
147
Set `STARTMENUSHORTCUT=1` to create shortcuts for user interaction in the Start Menu to run task `Winget-AutoUpdate` and open Logs.
148
148
149
149
### NOTIFICATIONLEVEL
150
-
Specify the Notification level: Full (Default, displays all notification), SuccessOnly (Only displays notification for success) or None (Does not show any popup).
150
+
Specify the Notification level: Full (Default, displays all notification), SuccessOnly (Only displays notification for success), ErrorsOnly (Only displays notification for errors) or None (Does not show any popup).
151
151
152
152
### UPDATESATLOGON
153
153
Default value 1. Set `UPDATESATLOGON=0` to disable WAU from running at user logon.
@@ -158,6 +158,11 @@ Default value Never. Specify the update frequency: Daily, BiDaily, Weekly, BiWee
158
158
### UPDATESATTIME
159
159
Default value 6AM (06:00:00). Specify the time of the update interval execution time. Example `UPDATESATTIME="11:00:00"`
160
160
161
+
### UPDATESATTIMEDELAY
162
+
Default value is none (00:00). This setting specifies the delay for the scheduled task.
163
+
A scheduled task random delay adds a random amount of wait time (up to the specified maximum) before the task starts.
164
+
This helps prevent many devices from running the task at the exact same time. This is not applicable to "on logon" triggers.
165
+
161
166
### DONOTRUNONMETERED
162
167
Default value 1. Set `DONOTRUNONMETERED=0` to force WAU to run on metered connections. May add cellular data costs on shared connexion from smartphone for example.
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:
183
+
You can use [Winget-Install](https://github.com/Romanitho/Winget-AutoUpdate/blob/main/Sources/Winget-AutoUpdate/Winget-Install.ps1) to deploy the package (this example with an override of parameters):
You can also use [Winget-Install](https://github.com/Romanitho/Winget-AutoUpdate/blob/main/Sources/Winget-AutoUpdate/Winget-Install.ps1) to deploy the same package in **SCCM**:
Instead of including the override parameters in the install string you can use a **Mod** (**mods\Adobe.Acrobat.Reader.64-bit-override.txt**) with the content:
As a custom detection script you can download/edit [winget-detect.ps1](Sources/Tools/Detection/winget-detect.ps1) (change app to detect [**Application ID**]) in **Intune**/**SCCM**
200
+
201
+
A nice feature is if you're already using the deprecated standalone script **winget-install.ps1** from the [old repo](https://github.com/Romanitho/Winget-Install) and have placed it somwhere locally on all clients you can make a **SymLink** in its place and keep using the old path (avoiding a lot of work) in your deployed applications (**Winget-Install.ps1** takes care of the SymLink logic).
182
202
183
203
## GPO / Intune Management
184
204
Read more in the [Policies section](https://github.com/Romanitho/Winget-AutoUpdate/tree/main/Sources/Policies).
@@ -189,8 +209,14 @@ Read more in the [Policies section](https://github.com/Romanitho/Winget-AutoUpda
189
209
This script executes **if the network is active/any version of Winget is installed/WAU is running as SYSTEM**.<br>
190
210
If **ExitCode** is **1** from `_WAU-mods.ps1` then **Re-run WAU**.
191
211
212
+
In addition to this legacy handling, a new action-based system is now supported.<br>
213
+
This system lets you define multiple actions and conditions directly in your mod scripts, enabling more advanced automation and control over the WAU process.<br>
214
+
With actions, you can execute different scripts, check results, and control the WAU flow with greater flexibility and improved logging compared to relying solely on **Exit Code**.
215
+
192
216
Likewise `_WAU-mods-postsys.ps1` can be used to do things at the end of the **SYSTEM context WAU** process before the user run.
193
217
218
+
You can find more information in [README Mods for WAU](Sources/Winget-AutoUpdate/mods/README.md)
219
+
194
220
## Custom scripts (Mods feature for Apps)
195
221
The Mods feature allows you to run additional scripts when upgrading or installing an app.
196
222
Just put the scripts in question with the **AppID** followed by the `-preinstall`, `-upgrade`, `-install`, `-installed` or `-notinstalled` suffix in the **mods** folder.
@@ -207,18 +233,24 @@ The **-install** mod will be used for upgrades too if **-upgrade** doesn't exist
207
233
> Example:<br>
208
234
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.
209
235
210
-
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.<br>
211
-
Read more in the `README.md` under the directory **mods**.
236
+
You can find more information in [README Mods for WAU](Sources/Winget-AutoUpdate/mods/README.md), as it's a related feature.
Another finess is the **AppID** followed by the `-override` suffix as a **text file** (.**txt**) that you can place under the **mods** folder.
218
243
> Example:<br>
219
-
**Canneverbe.CDBurnerXP-override.txt** with the content `ADDLOCAL=All REMOVE=Desktop_Shortcut /qn`
244
+
**Adobe.Acrobat.Reader.64-bit-override.txt** with the content `"-sfx_nu /sAll /rs /msi EULA_ACCEPT=YES DISABLEDESKTOPSHORTCUT=1"`
245
+
246
+
This will use the **content** of the text file as a native **winget --override** parameter when upgrading.
247
+
248
+
Likewise you can use the **AppID** followed by the `-custom` suffix as a **text file** (.**txt**) that you can place under the **mods** folder (*Arguments to be passed on to the installer in addition to the defaults*).
249
+
> Example:<br>
250
+
**Adobe.Acrobat.Reader.64-bit-custom.txt** with the content `"DISABLEDESKTOPSHORTCUT=1"`
251
+
252
+
This will use the **content** of the text file as a native **winget --custom** parameter when upgrading.
220
253
221
-
This will use the **content** of the text file as a native **winget --override** parameter when upgrading (as proposed by [JonNesovic](https://github.com/JonNesovic) in [Mod for --override argument #244](https://github.com/Romanitho/Winget-AutoUpdate/discussions/244#discussion-4637666)).
222
254
223
255
## Known issues
224
256
* As reported by [soredake](https://github.com/soredake), Powershell from MsStore is not supported with WAU in system context. See <https://github.com/Romanitho/Winget-AutoUpdate/issues/113>
0 commit comments