diff --git a/README.md b/README.md index 2d30d8f..3f21121 100644 --- a/README.md +++ b/README.md @@ -139,9 +139,10 @@ See https://github.com/Romanitho/Winget-AutoUpdate/discussions/88 ## Custom scripts (Mods feature) From version 1.8.0, the Mods feature allows you to run an additional script when upgrading or installing an app. -Just put the script in question with the **AppID** followed by the `-preinstall`, `-install` or `-upgrade` suffix in the **mods** folder. +Just put the script in question with the **AppID** followed by the `-preinstall`, `-upgrade`, `-install` or `-installed` suffix in the **mods** folder. WAU will call `AppID-preinstall.ps1` before **winget** upgrades the app. -WAU will call `AppID-install.ps1` and/or `AppID-upgrade.ps1` (if the install modes differs, otherwise the **-install** mod will be used for upgrades too) if it exists in the **mods** folder just after the upgrade/install. +WAU will call `AppID-upgrade.ps1` and `AppID-install.ps1` (the **-install** mod will be used for upgrades too if **-upgrade** doesn't exist) if it exists in the **mods** folder during (just after the **winget** upgrade/install). +WAU will call `AppID-installed.ps1` after the upgrade/installation has been confirmed. > 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: diff --git a/Winget-AutoUpdate/mods/README.md b/Winget-AutoUpdate/mods/README.md index f73bc5d..4242b09 100644 --- a/Winget-AutoUpdate/mods/README.md +++ b/Winget-AutoUpdate/mods/README.md @@ -1 +1 @@ -Pre/Post install custom scripts should be placed here +Pre/During/Post install custom scripts should be placed here