-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathinstall.cmd
More file actions
31 lines (27 loc) · 1.38 KB
/
Copy pathinstall.cmd
File metadata and controls
31 lines (27 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
@echo off
setlocal EnableExtensions
chcp 65001 >nul 2>&1
REM ═══════════════════════════════════════════════════════════════
REM XrayMOD — Windows one-command install (CMD)
REM
REM CMD:
REM powershell -NoProfile -ExecutionPolicy Bypass -Command "iex (iwr -UseBasicParsing 'https://raw.githubusercontent.com/askarniroomand/XRayMOD/main/install.ps1').Content"
REM
REM PowerShell (prompt starts with PS):
REM irm https://raw.githubusercontent.com/askarniroomand/XRayMOD/main/install.ps1 | iex
REM
REM Support: https://t.me/MRROBOT_DT
REM ═══════════════════════════════════════════════════════════════
echo.
echo XrayMOD - automatic installer
echo Support: https://t.me/MRROBOT_DT
echo.
where powershell >nul 2>&1
if errorlevel 1 (
echo [X] PowerShell not found.
exit /b 1
)
REM Single-quoted -Command so CMD does not mangle the script.
REM Cache-bust query so raw CDN is less likely to serve a stale bootstrap.
powershell -NoProfile -ExecutionPolicy Bypass -Command "iex (iwr -UseBasicParsing ('https://raw.githubusercontent.com/askarniroomand/XRayMOD/main/install.ps1?t=' + [guid]::NewGuid().ToString('N'))).Content"
exit /b %ERRORLEVEL%