wingetautoupdate/Winget-AutoUpdate/mods/README.md

11 lines
738 B
Markdown
Raw Normal View History

2022-12-20 01:50:11 +00:00
Pre/During/Post install/uninstall custom scripts should be placed here.
2023-01-06 23:53:53 +00:00
A script **Template** and **Mods Functions** are included as **example** to get you started...
2022-12-20 01:50:11 +00:00
2022-12-20 02:19:46 +00:00
Scripts that are considered:
2023-01-06 23:53:53 +00:00
**AppID**`-preinstall.ps1`, `-upgrade.ps1`, `-install.ps1`, `-installed.ps1`, `-preuninstall.ps1`, `-uninstall.ps1` or `-uninstalled.ps1`
2023-01-06 23:55:20 +00:00
The **-install** mod will be used for upgrades too if **-upgrade** doesn't exist (**WAU** first tries `& $Winget upgrade --id` and if the app isn't detected after that `& $Winget install --id` is tried).
2023-01-06 23:53:53 +00:00
`AppID-install.ps1` is recommended because it's used in **both** scenarios.
2022-12-20 02:19:46 +00:00
**AppID**`-override.txt` (the content) will be used as a native **winget --override** parameter when upgrading