mirror of
https://github.com/mrpond/BlockTheSpot.git
synced 2025-05-19 07:43:54 +02:00
882 lines
No EOL
357 KiB
Batchfile
882 lines
No EOL
357 KiB
Batchfile
;;;===,,,@echo off
|
||
;;;===,,,setlocal enableextensions
|
||
;;;===,,,taskkill /f /im Spotify.exe 2> NUL
|
||
;;;===,,,taskkill /f /im spotifywebhelper.exe 2> NUL
|
||
;;;===,,,powershell Get-AppxPackage -Name "SpotifyAB.SpotifyMusic" | findstr "PackageFullName" > NUL
|
||
;;;===,,,if %errorlevel% EQU 0 (
|
||
;;;===,,, echo.
|
||
;;;===,,, echo The Microsoft Store version of Spotify has been detected which is not supported.
|
||
;;;===,,, echo Please uninstall it first, and install the desktop version instead.
|
||
;;;===,,, echo.
|
||
;;;===,,, echo To uninstall, search for Spotify in the start menu and right-click on the result and click Uninstall.
|
||
;;;===,,, echo.
|
||
;;;===,,, echo The full ^(offline^) setup for the destkop version can be found here:
|
||
;;;===,,, echo https://download.scdn.co/SpotifyFullSetup.exe
|
||
;;;===,,, echo.
|
||
;;;===,,, pause
|
||
;;;===,,, exit /b
|
||
;;;===,,,)
|
||
;;;===,,,for /f delims^=^"^ tokens^=2 %%A in ('reg query HKCR\spotify\shell\open\command') do (
|
||
;;;===,,, if exist "%%~dpA\Spotify.exe" set p=%%~dpA
|
||
;;;===,,,)
|
||
;;;===,,,if defined p (
|
||
;;;===,,, findstr /v "^;;;===,,," "%~f0" > "%p%\netutils.dll"
|
||
;;;===,,,) else (
|
||
;;;===,,, echo Spotify installation was not detected, falling back to default path.
|
||
;;;===,,, findstr /v "^;;;===,,," "%~f0" > "%appdata%\Spotify\netutils.dll"
|
||
;;;===,,,)
|
||
;;;===,,,echo Installation complete.
|
||
;;;===,,,echo.
|
||
;;;===,,,pause
|
||
;;;===,,,exit /b
|
||
MZ<EFBFBD> |