fix spotify installation

This commit is contained in:
Mylloon 2023-05-17 19:05:36 +02:00
parent 9dfed11f17
commit 6a403b89c8
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -5,7 +5,10 @@ SET "repo=https://git.mylloon.fr/Anri/confOS/raw/branch/main"
:: Executed as normal user :: Executed as normal user
fltmc >NUL 2>&1 || ( fltmc >NUL 2>&1 || (
MKDIR %HOMEPATH%\Documents\Local
:: === Install Spotify == :: === Install Spotify ==
PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/blockthespot.bat -OutFile '%HOMEPATH%\Documents\Local\blockthespot.bat'"
DEL "%APPDATA%\Spotify" DEL "%APPDATA%\Spotify"
CMD /c "%HOMEPATH%\Documents\Local\blockthespot.bat" CMD /c "%HOMEPATH%\Documents\Local\blockthespot.bat"
@ -134,9 +137,7 @@ PowerShell -Command "Install-PackageProvider -Name NuGet -Force"
PowerShell -Command "Install-Module -Name PSWindowsUpdate -Force" PowerShell -Command "Install-Module -Name PSWindowsUpdate -Force"
:: === Scripts == :: === Scripts ==
MKDIR %HOMEPATH%\Documents\Local
PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/ctmpf.bat -OutFile '%HOMEPATH%\Documents\Local\ctmpf.bat'" PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/ctmpf.bat -OutFile '%HOMEPATH%\Documents\Local\ctmpf.bat'"
PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/blockthespot.bat -OutFile '%HOMEPATH%\Documents\Local\blockthespot.bat'"
PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/update.bat -OutFile '%HOMEPATH%\Documents\Local\update.bat'" PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/update.bat -OutFile '%HOMEPATH%\Documents\Local\update.bat'"
PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/fix_nvidia_wsl.bat -OutFile '%HOMEPATH%\Documents\Local\fix_nvidia_wsl.bat'" PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/fix_nvidia_wsl.bat -OutFile '%HOMEPATH%\Documents\Local\fix_nvidia_wsl.bat'"