Skip to content

Commit c585f8c

Browse files
authored
Merge branch 'develop' into add-retryLogic-Exitcode
2 parents d6c588a + 2f229a2 commit c585f8c

File tree

7 files changed

+51
-301
lines changed

7 files changed

+51
-301
lines changed

.github/workflows/GitFlow_Check-pull-request-source-branch.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,11 @@ jobs:
3434
# Step 1: Check branch pattern
3535
- name: Check branch pattern
3636
id: branch_check
37+
env:
38+
HEAD_REF: ${{ github.head_ref }}
39+
BASE_REF: ${{ github.base_ref }}
3740
run: |
38-
# Get branch information from context
39-
HEAD_REF="${{ github.head_ref }}"
40-
BASE_REF="${{ github.base_ref }}"
41+
# Les variables sont maintenant définies dans l'environnement plutôt qu'injectées directement
4142
MAIN_BRANCH="${{ env.MAIN_BRANCH }}"
4243
VALID_PATTERN="${{ env.VALID_PATTERNS }}"
4344
@@ -175,4 +176,4 @@ jobs:
175176
}
176177
} catch (error) {
177178
console.log(`Error in cleanup: ${error}`);
178-
}
179+
}

README.md

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Just download latest release [WAU.msi](https://github.com/Romanitho/Winget-AutoU
2121

2222

2323
### Use winget to install WAU
24-
The following command will install WAU through winget itself in the newest version available.
24+
The following command will install WAU through winget itself in the newest version available.
2525

2626
```batch
2727
winget install Romanitho.Winget-AutoUpdate
@@ -175,15 +175,22 @@ Default is 1048576 = 1 MB (ca. 7500 lines)
175175
Specify Winget-AutoUpdate installation location. Default: `C:\Program Files\Winget-AutoUpdate` (Recommended to leave default).
176176

177177
### Deploy with 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:
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:
179179
```batch
180180
"%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""
181181
```
182182

183+
## GPO / Intune Management
184+
Read more in the [Policies section](https://github.com/Romanitho/Winget-AutoUpdate/tree/main/Sources/Policies).
185+
186+
183187
## Custom script (Mods for WAU)
184188
**Mods for WAU** allows you to craft a script to do whatever you like via `_WAU-mods.ps1` in the **mods** folder.<br>
185189
This script executes **if the network is active/any version of Winget is installed/WAU is running as SYSTEM**.<br>
186190
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+
187194
## Custom scripts (Mods feature for Apps)
188195
The Mods feature allows you to run additional scripts when upgrading or installing an app.
189196
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
198205
`AppID-install.ps1` is recommended because it's used in **both** scenarios.
199206

200207
> 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.
203209

204210
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>
205211
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
214220

215221
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)).
216222

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**.
224-
225-
![image](https://user-images.githubusercontent.com/102996177/213920242-7ff8e2b4-d926-4407-b860-1e5922e29c3e.png)
226-
227223
## Known issues
228224
* 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>
229225

@@ -238,3 +234,4 @@ Feel free to give us any suggestions or optimizations in code and support us by
238234
[![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/)
239235

240236
</div>
237+

Sources/Policies/ADMX/WAU.admx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<policyDefinitions xmlns:xsd="http://www.w3.org/2001/XMLSchema"
3-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" revision="4.9" xsi:schemaLocation=""
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" revision="4.9"
44
schemaVersion="1.0" xmlns="http://www.microsoft.com/GroupPolicy/PolicyDefinitions">
55
<policyNamespaces>
66
<target prefix="WAU" namespace="Romanitho.Policies.WAU" />

0 commit comments

Comments
 (0)