Repository navigation
WAU Mods
Göran Axel Johannesson edited this page Oct 8, 2025
·
3 revisions

- Placed in mods folder and executes if network is active/any version of Winget is installed/WAU is running as SYSTEM
- If ExitCode is 1 from
_WAU-mods.ps1then Re-run WAU - New action-based system is now supported that allows multiple actions and conditions directly in mod script for advanced automation and better control over the WAU process
-
_WAU-mods-postsys.ps1can be used for actions at the end of the SYSTEM context WAU process before user run - Templates available:
_WAU-mods-template.ps1and_WAU-mods-postsys-template.ps1
Scripts placed in mods folder with AppID followed by suffix:
-
AppID-preinstall.ps1- Runs before upgrade/install -
AppID-upgrade.ps1orAppID-install.ps1- Runs during upgrade/install (before install check) -
AppID-installed.ps1- Runs after upgrade/install has been confirmed -
AppID-notinstalled.ps1- Runs after a failed upgrade/install -
_WAU-notinstalled.ps1- Global fallback for failed installations (overridden by individualAppID-notinstalled.ps1) - Templates available:
_AppID-template.ps1and_WAU-notinstalled-template.ps1
-
AppID-preuninstall.ps1,AppID-uninstall.ps1,AppID-uninstalled.ps1
- -install mod will be used for upgrades too if -upgrade doesn't exist
-
AppID-install.ps1is recommended because it's used in both scenarios - If
AppID-preinstall.ps1orAppID-preuninstall.ps1returns$false, the install/update/uninstall for that AppID is skipped
- Text file:
AppID-override.txtin mods folder - Example:
Adobe.Acrobat.Reader.64-bit-override.txtwith content:"-sfx_nu /sAll /rs /msi EULA_ACCEPT=YES DISABLEDESKTOPSHORTCUT=1" - Used as
winget --overrideparameter
- Text file:
AppID-custom.txtin mods folder - Example:
ShareX.ShareX-custom.txtwith content:/MERGETASKS=!CreateDesktopIcon - Used as
winget --customparameter (arguments in addition to defaults)