wingetautoupdate/Winget-AutoUpdate/mods
KnifMelti e2c8e3cf21 Upgrade in Readme 2022-04-20 06:35:50 +02:00
..
README.md Upgrade in Readme 2022-04-20 06:35:50 +02:00

README.md

Winget-Install

Mods

The Mod feature allows you to run an additional script when installing, upgrading or uninstalling an app. Just put the script with the App ID followed by the "-install", "-upgrade" or "-uninstall" suffix to be considered.
AppID-install.ps1, AppID-upgrade.ps1 or AppID-uninstall.ps1
and put this in the Mods directory

Example:
If you want to run a script just after uninstalling FileZilla, call your script like this: TimKosse.FileZilla.Client-uninstall.ps1

In the case of FileZilla it spawns a process "Un_A.exe" (NullSoft) as a graphical uninstallation and this we will have to wait for completion of before moving on to checking if the uninstallation suceeded or not.