From 04cf0101e09348b625b6fc6460125a22812fd148 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Tue, 9 Apr 2024 01:40:52 +0200 Subject: [PATCH] add Spotify to the list of exclusions, as it is updated via blockthespot --- windows/update.bat | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/windows/update.bat b/windows/update.bat index 6f53cbc..74f7284 100644 --- a/windows/update.bat +++ b/windows/update.bat @@ -1,4 +1,5 @@ @ECHO OFF +SETLOCAL ENABLEDELAYEDEXPANSION :: Start as administrator fltmc >NUL 2>&1 || ( @@ -8,11 +9,22 @@ fltmc >NUL 2>&1 || ( EXIT 0 ) -:: Windows programs +:: Exclusion list +SET ^"exclusions=^ + Spotify.Spotify" + +:: Apply exclude list +for %%i in (!exclusions!) do ( + winget pin add --id %%i >NUL +) + +:: Update Windows programs winget upgrade -h --all -:: NOTE: If you want to not update a package, you can pin it: -:: winget pin add --id ID.OF.THE.APP +:: Clean list of exclusions +for %%i in (!exclusions!) do ( + winget pin remove --id %%i >NUL +) :: Windows Update PowerShell -Command "Set-ExecutionPolicy Bypass -Scope Process;" ^