wingetautoupdate/Winget-AutoUpdate/mods/README.md

14 lines
793 B
Markdown
Raw Normal View History

2022-04-20 04:32:50 +00:00
# Winget-Install
## Mods
2022-04-20 12:51:37 +00:00
The Mod feature allows you to run an additional script when installing or upgrading an app.
Just put the script with the App ID followed by the "-install" or "-upgrade" suffix to be considered.
2022-04-20 21:19:05 +00:00
`AppID-install.ps1` and/or `AppID-upgrade.ps1` (if it differs, otherwise the "-install" mod will be used for upgrade)
2022-04-20 04:32:50 +00:00
and put this in the Mods directory
> Example:
2022-04-20 12:51:37 +00:00
> If you want to run a script just after installing ".NET Desktop Runtime 6", call your script like this:
> `Microsoft.dotnetRuntime.6-x64-install.ps1`
2022-04-20 04:32:50 +00:00
2022-04-20 21:19:05 +00:00
In the case of ".NET Desktop Runtime 6" it spawns a new process and this we will have to wait for completion of before moving on to checking if the installation/upgrade suceeded or not. - (this seems to be handled in Winget Version: v1.3.0-preview)