-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathruninstall.cmd
118 lines (113 loc) · 3.39 KB
/
runinstall.cmd
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
@echo off
:SuperAsk
echo ===================================================
echo Be sure to run this as Admin.
echo With yes you will install Chocolatey, Node(Lastest), Atom with not questions asked...
echo With no you will have a Step-by-Step guide where you can install Node(Stable or Latest Beta), Yarn, Atom, VisualStudio Code and Cmder.
echo How would you like to continue y/n?
echo ===================================================
set INPUT=
set /P INPUT=Type input: %=%
If /I "%INPUT%"=="y" goto superyes
If /I "%INPUT%"=="n" goto superno
:superyes
echo Install Chocolatey, Node(Lastest), Atom...:
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
choco install -y nodejs.install
choco install -y atom
goto exit
:superno
echo OK
pause
goto Ask
::::::::::::::::::::::::::::::::::::::::::::::::::
:Ask
echo Would you like to install Chocolatey it is a must to continue y/n?
set INPUT=
set /P INPUT=Type input: %=%
If /I "%INPUT%"=="y" goto yes
If /I "%INPUT%"=="n" goto no
:yes
echo Installing Chocolatey:
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
goto Ask2
:no
echo Shame the the installation is going to exit now...
pause
goto superexit
::::::::::::::::::::::::::::::::::::::::::::::
:Ask2
echo Would you like to install Nodejs (S)table or Latest (B)eta?(S/B)
set INPUT=
set /P INPUT=Type input: %=%
If /I "%INPUT%"=="s" goto stablenode
If /I "%INPUT%"=="b" goto betanode
:stablenode
echo Here is the stable version of node
choco install -y nodejs-lts
goto Ask3
:betanode
echo Here is the lastest version of node
choco install -y nodejs.install
goto Ask3
::::::::::::::::::::::::::::::::::::::::::::::
:Ask3
echo Would you like to install Yarn yes/no?(y/n)
set INPUT=
set /P INPUT=Type input: %=%
If /I "%INPUT%"=="y" goto yarnyes
If /I "%INPUT%"=="n" goto yarnno
:yarnyes
echo Installing Yarn:
choco install -y yarn
goto Ask5
:yarnno
echo *******************************************
pause
goto Ask5
::::::::::::::::::::::::::::::::::::::::::::::
:Ask5
echo Would you like to install Atom yes/no?(y/n)
set INPUT=
set /P INPUT=Type input: %=%
If /I "%INPUT%"=="y" goto atomyes
If /I "%INPUT%"=="n" goto atomno
:atomyes
echo Installing Atom from Atom.io...
choco install -y atom
goto Ask6
:atomno
echo *******************************************
goto Ask6
::::::::::::::::::::::::::::::::::::::::::::
:Ask6
echo Would you like to install VisualStudio Code yes/no?(y/n)
set INPUT=
set /P INPUT=Type input: %=%
If /I "%INPUT%"=="y" goto vsyes
If /I "%INPUT%"=="n" goto vsno
:vsyes
echo Installing VSCode...
choco install -y visualstudiocode
goto Ask7
:vsno
echo *******************************************
goto Ask7
:::::::::::::::::::::::::::::::::::::::::::::
:Ask7
echo Would you like to install Cmder yes/no?(y/n)
set INPUT=
set /P INPUT=Type input: %=%
If /I "%INPUT%"=="y" goto cmderyes
If /I "%INPUT%"=="n" goto cmderno
:cmderyes
echo Installing Cmder...
choco install -y Cmder
:cmderno
goto exit
:exit
echo Everything has been installed, have fun hacking ;)
TIMEOUT /T 10
exit
:superexit
exit