-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstaller.bat
More file actions
78 lines (55 loc) · 2.27 KB
/
installer.bat
File metadata and controls
78 lines (55 loc) · 2.27 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
@echo off
:: Intro
echo Welcome to the xInWin Installer
echo.
echo xInWin converts some Bash commands into Batch commands, allowing you to use Bash without virtualization.
echo.
pause
echo.
:: Create xInWin folder to %PROGRAMFILES%
md "%PROGRAMFILES%\xInWin"
echo.
set xiw="%PROGRAMFILES\xInWin%"
set wd=%cd%
:: Download commands and interpreter
cd %PROGRAMFILES%\xInWin
:: Delete older directory
if exist commands (
del commands
rd commands
)
echo.
:: Make directory
md commands
cd commands
del interpreter.exe
curl -O https://raw.githubusercontent.com/srcatarr/xInWin/main/interpreter.exe
ren interpreter.exe sh.exe
curl -O https://raw.githubusercontent.com/srcatarr/xInWin/main/commands/clear.bat
curl -O https://raw.githubusercontent.com/srcatarr/xInWin/main/commands/export.bat
curl -O https://raw.githubusercontent.com/srcatarr/xInWin/main/commands/grep.bat
curl -O https://raw.githubusercontent.com/srcatarr/xInWin/main/commands/ls.bat
curl -O https://raw.githubusercontent.com/srcatarr/xInWin/main/commands/mkdir.bat
curl -O https://raw.githubusercontent.com/srcatarr/xInWin/main/commands/rm.bat
curl -O https://raw.githubusercontent.com/srcatarr/xInWin/main/commands/touch.bat
curl -O https://raw.githubusercontent.com/srcatarr/xInWin/main/commands/cat.bat
curl -O https://raw.githubusercontent.com/srcatarr/xInWin/main/commands/chmod.bat
curl -O https://raw.githubusercontent.com/srcatarr/xInWin/main/commands/cp.bat
curl -O https://raw.githubusercontent.com/srcatarr/xInWin/main/commands/less.bat
curl -O https://raw.githubusercontent.com/srcatarr/xInWin/main/commands/mv.bat
curl -O https://raw.githubusercontent.com/srcatarr/xInWin/main/commands/pwd.bat
curl -O https://raw.githubusercontent.com/srcatarr/xInWin/main/commands/sed.bat
curl -O https://raw.githubusercontent.com/srcatarr/xInWin/main/commands/sudo.cmd
curl -O https://raw.githubusercontent.com/srcatarr/xInWin/main/commands/sudo.vbs
curl -O https://raw.githubusercontent.com/srcatarr/xInWin/main/commands/xiw.bat
cd %wd%
:: Download readme
del "%PROGRAMFILES%\xInWin\readme.txt"
curl https://raw.githubusercontent.com/srcatarr/xInWin/main/readme.txt>>"%PROGRAMFILES%\xInWin\readme.txt"
"%PROGRAMFILES%\xInWin\readme.txt"
:: Save to path
setx path "%PATH%;%xiw%\commands"
:: Outro
echo.
echo xInWin installed.
echo.