Files
SpotX/scripts/Install_Prem.bat
amd64fox 7df2695e42 links fixed
#770
2025-09-25 04:15:20 +03:00

14 lines
624 B
Batchfile

@echo off
:: Line for changing spotx parameters, each parameter should be separated by a space
set param=-premium -new_theme -block_update_on
set url='https://raw.githubusercontent.com/SpotX-Official/SpotX/refs/heads/main/run.ps1'
set url2='https://spotx-official.github.io/SpotX/run.ps1'
set tls=[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12;
%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe ^
-Command %tls% $p='%param%'; """ & { $(try { iwr -useb %url% } catch { $p+= ' -m'; iwr -useb %url2% })} $p """" | iex
pause
exit /b