From 995a994b3842399c77a5ecd8c9f476b2c0b63cf9 Mon Sep 17 00:00:00 2001 From: Romain <96626929+Romanitho@users.noreply.github.com> Date: Sat, 23 Apr 2022 18:59:16 +0200 Subject: [PATCH] Consolidate new feature doc @KnifMelti --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 93b7e4f..ad68d66 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,19 @@ Use White List instead of Black List. This setting will not create the "exclude_ **-Uninstall** Remove scheduled tasks and scripts. +## Custom scripts (Mods feature) + +The Mods 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. +`AppID-install.ps1` and/or `AppID-upgrade.ps1` (if it differs, otherwise the "-install" mod will be used for upgrade) +and put this in the Mods directory +> Example: +> 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` + +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) + + ## Help In some cases, you need to "unblock" the "install.bat" file (Windows Defender SmartScreen). Right click, properties and unblock. Then, you'll be able to run it.