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
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:
178
+
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:
Read more in the [Policies section](https://github.com/Romanitho/Winget-AutoUpdate/tree/main/Sources/Policies).
185
+
186
+
183
187
## Custom script (Mods for WAU)
184
188
**Mods for WAU** allows you to craft a script to do whatever you like via `_WAU-mods.ps1` in the **mods** folder.<br>
185
189
This script executes **if the network is active/any version of Winget is installed/WAU is running as SYSTEM**.<br>
186
190
If **ExitCode** is **1** from `_WAU-mods.ps1` then **Re-run WAU**.
191
+
192
+
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
+
187
194
## Custom scripts (Mods feature for Apps)
188
195
The Mods feature allows you to run additional scripts when upgrading or installing an app.
189
196
Just put the scripts in question with the **AppID** followed by the `-preinstall`, `-upgrade`, `-install`, `-installed` or `-notinstalled` suffix in the **mods** folder.
@@ -198,8 +205,7 @@ The **-install** mod will be used for upgrades too if **-upgrade** doesn't exist
198
205
`AppID-install.ps1` is recommended because it's used in **both** scenarios.
199
206
200
207
> Example:<br>
201
-
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),
202
-
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.
208
+
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.
203
209
204
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>
205
211
Read more in the `README.md` under the directory **mods**.
@@ -214,16 +220,6 @@ Another finess is the **AppID** followed by the `-override` suffix as a **text f
214
220
215
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)).
216
222
217
-
## GPO Management
218
-
In an enterprise environment it's crucial that different groups can have different settings in applications etc. or to implement other mandatory settings, i.e for security/management reasons.<br>
219
-
**WAU** doesn't have any setting that can be changed except for when installing (or editing the registry/the task `Winget-AutoUpdate` as **Admin**).<br>
220
-
With the use of **ADML/ADMX** files you can manage every **WAU** setting from within **GPO**.<br>
221
-
They will be detected/evaluated on a daily basis.<br>
222
-
The **GPO ADMX/ADML** validated with: [Windows 10 - Validate ADMX for Ingestion](https://web.archive.org/web/20231108145017/https://developer.vmware.com/samples/7115/windows-10---validate-admx-for-ingestion)<br>
223
-
Read more in the `README.md` under the directory **Policies**.
* 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>
229
225
@@ -238,3 +234,4 @@ Feel free to give us any suggestions or optimizations in code and support us by
238
234
[](https://github.com/Romanitho/Winget-AutoUpdate/releases/)
0 commit comments