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
fltmc >NUL 2>&1 || (
MKDIR %HOMEPATH%\Documents\Local
:: === Install Spotify ==
PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/blockthespot.bat -OutFile '%HOMEPATH%\Documents\Local\blockthespot.bat'"
DEL "%APPDATA%\Spotify"
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"
:: === 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/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/fix_nvidia_wsl.bat -OutFile '%HOMEPATH%\Documents\Local\fix_nvidia_wsl.bat'"