fix spotify installation

This commit is contained in:
Mylloon 2023-05-17 16:55:47 +02:00
parent f030589158
commit c4c77aaf63
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -1,16 +1,21 @@
@ECHO OFF @ECHO OFF
SETLOCAL ENABLEDELAYEDEXPANSION SETLOCAL ENABLEDELAYEDEXPANSION
:: Start as administrator SET "repo=https://git.mylloon.fr/Anri/confOS/raw/branch/main"
:: Executed before everything, as normal user
fltmc >NUL 2>&1 || ( fltmc >NUL 2>&1 || (
:: === Install Spotify ==
DEL "%APPDATA%\Spotify"
CMD /c "%HOMEPATH%\Documents\Local\blockthespot.bat"
:: Start as administrator
PowerShell Start -Verb RunAs '%0' 2>NUL || ( PowerShell Start -Verb RunAs '%0' 2>NUL || (
EXIT 1 EXIT 1
) )
EXIT 0 EXIT 0
) )
SET "repo=https://git.mylloon.fr/Anri/confOS/raw/branch/main"
:: === Right click of Windows 10 == :: === Right click of Windows 10 ==
REG ADD "HKEY_CURRENT_USER\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve REG ADD "HKEY_CURRENT_USER\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve
@ -125,10 +130,6 @@ PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/blockthespot.bat -Out
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'"
:: === Install Spotify ==
DEL "%APPDATA%\Spotify"
CMD /c "%HOMEPATH%\Documents\Local\blockthespot.bat"
:: === Install OpenTabletDriver == :: === Install OpenTabletDriver ==
:: Download :: Download
PowerShell -Command "Invoke-WebRequest -Uri https://opentabletdriver.net/Release/Download/OpenTabletDriver.win-x64.zip -OutFile '%HOMEPATH%\Downloads\OpenTabletDriver.win-x64.zip'" PowerShell -Command "Invoke-WebRequest -Uri https://opentabletdriver.net/Release/Download/OpenTabletDriver.win-x64.zip -OutFile '%HOMEPATH%\Downloads\OpenTabletDriver.win-x64.zip'"