add Spotify to the list of exclusions, as it is updated via blockthespot
This commit is contained in:
parent
dda6081a60
commit
04cf0101e0
1 changed files with 15 additions and 3 deletions
|
@ -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;" ^
|
||||
|
|
Loading…
Reference in a new issue