From 06e754451a0b0c31e8d69e9f736d8c8d4d7aab00 Mon Sep 17 00:00:00 2001 From: KnifMelti Date: Sat, 14 Jan 2023 20:41:21 +0100 Subject: [PATCH 1/3] Better mods README.md --- mods/README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mods/README.md b/mods/README.md index 3cbfa58..d38dbbd 100644 --- a/mods/README.md +++ b/mods/README.md @@ -2,4 +2,8 @@ Pre/During/Post install/uninstall custom scripts should be placed here. A script Template and Mods Functions are included as example to get you started... Scripts that are considered: -**AppID**`-preinstall.ps1`, `-install.ps1`, `-installed-once.ps1`, `-installed.ps1`, `-preuninstall.ps1`, `-uninstall.ps1` or `-uninstalled.ps1` +**AppID**`-preinstall.ps1`, `-install.ps1`, `-installed-once.ps1`, `-installed.ps1`, `-preuninstall.ps1`, `-uninstall.ps1` or `-uninstalled.ps1` + +If you're using [**WAU** (Winget-AutoUpdate)](https://github.com/Romanitho/Winget-AutoUpdate) they get copied to the **WAU mods** directory (except `-installed-once.ps1` and `-uninstall.ps1`) if deployed from **Winget-Install** and also runs when upgrading apps in **WAU**. + +They are deleted on an uninstall (if not centrally managed in **WAU**) From 6d208074805e097ae0d72a340934191d55609c14 Mon Sep 17 00:00:00 2001 From: KnifMelti Date: Sat, 14 Jan 2023 20:53:00 +0100 Subject: [PATCH 2/3] README.md fix --- mods/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mods/README.md b/mods/README.md index d38dbbd..7fbadd4 100644 --- a/mods/README.md +++ b/mods/README.md @@ -1,9 +1,9 @@ Pre/During/Post install/uninstall custom scripts should be placed here. -A script Template and Mods Functions are included as example to get you started... +A script **Template** and **Mods Functions** are included as **example** to get you started... Scripts that are considered: **AppID**`-preinstall.ps1`, `-install.ps1`, `-installed-once.ps1`, `-installed.ps1`, `-preuninstall.ps1`, `-uninstall.ps1` or `-uninstalled.ps1` -If you're using [**WAU** (Winget-AutoUpdate)](https://github.com/Romanitho/Winget-AutoUpdate) they get copied to the **WAU mods** directory (except `-installed-once.ps1` and `-uninstall.ps1`) if deployed from **Winget-Install** and also runs when upgrading apps in **WAU**. +If you're using [**WAU** (Winget-AutoUpdate)](https://github.com/Romanitho/Winget-AutoUpdate) they get copied to the **WAU mods** directory (except `-installed-once.ps1` and `-uninstall.ps1`) and also runs when upgrading apps in **WAU**. -They are deleted on an uninstall (if not centrally managed in **WAU**) +They are deleted from **WAU** on an uninstall (if deployed from **Winget-Install**) From 9285a6d029778d1ec9e20189b75a7968f5286c36 Mon Sep 17 00:00:00 2001 From: KnifMelti Date: Sat, 14 Jan 2023 21:25:01 +0100 Subject: [PATCH 3/3] Common README.md fixes --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index c0fe040..656218d 100644 --- a/README.md +++ b/README.md @@ -42,9 +42,9 @@ but most of the time, winget does not manage silent uninstall correcty. ## Custom (Mods) -The Mods feature allows you to run additional scripts before/when/after installing, upgrading or uninstalling an app. -Just put the script with the App ID followed by the suffix to be considered in the Mods directory: -`AppID-preinstall.ps1`, `AppID-upgrade.ps1`, `AppID-install.ps1`, `AppID-installed-once.ps1`, `AppID-installed.ps1`, `AppID-preuninstall.ps1`, `AppID-uninstall.ps1` or `AppID-uninstalled.ps1` +The **Mods feature** allows you to run additional scripts before/when/after installing or uninstalling an app. +Just put the script with the **AppID** followed by the suffix to be considered in the **Mods directory**: +**AppID**`-preinstall.ps1`, `-install.ps1`, `-installed-once.ps1`, `-installed.ps1`, `-preuninstall.ps1`, `-uninstall.ps1` or `-uninstalled.ps1` > Example: > Runs before install: `AppID-preinstall.ps1` @@ -55,11 +55,11 @@ Just put the script with the App ID followed by the suffix to be considered in t > Runs during uninstall (before uninstall check): `AppID-uninstall.ps1` > Runs after uninstall has been confirmed: `AppID-uninstalled.ps1` -If your using WAU (Winget-AutoUpdate) `AppID-preinstall.ps1`, `AppID-install.ps1`, `AppID-upgrade.ps1` and `AppID-installed.ps1` get copied to the WAU mods directory and runs when upgrading apps. +If you're using [**WAU** (Winget-AutoUpdate)](https://github.com/Romanitho/Winget-AutoUpdate) they get copied to the **WAU mods** directory (except `-installed-once.ps1` and `-uninstall.ps1`) and also runs when upgrading apps in **WAU**. -`AppID-installed-once.ps1` runs instead of `AppID-installed.ps1` from Winget-Install and doesn't get copied to the WAU mods directory. +`AppID-installed-once.ps1` runs instead of `AppID-installed.ps1` from **Winget-Install** and doesn't get copied to the **WAU mods** directory. -They are deleted from WAU on an uninstall (if not externally managed). +They are deleted from **WAU** on an uninstall (if deployed from **Winget-Install**) ## Other ideas and approaches https://github.com/o-l-a-v/winget-intune-win32