|
| 1 | +@echo off |
| 2 | +:SuperAsk |
| 3 | +echo =================================================== |
| 4 | +echo Be sure to run this as Admin. |
| 5 | +echo With yes you will install Chocolatey, Node(Lastest), Atom with not questions asked... |
| 6 | +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. |
| 7 | +echo How would you like to continue y/n? |
| 8 | +echo =================================================== |
| 9 | +set INPUT= |
| 10 | +set /P INPUT=Type input: %=% |
| 11 | +If /I "%INPUT%"=="y" goto superyes |
| 12 | +If /I "%INPUT%"=="n" goto superno |
| 13 | +:superyes |
| 14 | +echo Install Chocolatey, Node(Lastest), Atom...: |
| 15 | +@"%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" |
| 16 | +choco install -y nodejs.install |
| 17 | +choco install -y atom |
| 18 | +goto exit |
| 19 | +:superno |
| 20 | +echo OK |
| 21 | +pause |
| 22 | +goto Ask |
| 23 | + |
| 24 | +:::::::::::::::::::::::::::::::::::::::::::::::::: |
| 25 | +:Ask |
| 26 | +echo Would you like to install Chocolatey it is a must to continue y/n? |
| 27 | +set INPUT= |
| 28 | +set /P INPUT=Type input: %=% |
| 29 | +If /I "%INPUT%"=="y" goto yes |
| 30 | +If /I "%INPUT%"=="n" goto no |
| 31 | +:yes |
| 32 | +echo Installing Chocolatey: |
| 33 | +@"%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" |
| 34 | +goto Ask2 |
| 35 | +:no |
| 36 | +echo Shame the the installation is going to exit now... |
| 37 | +pause |
| 38 | +goto superexit |
| 39 | + |
| 40 | +:::::::::::::::::::::::::::::::::::::::::::::: |
| 41 | +:Ask2 |
| 42 | +echo Would you like to install Nodejs (S)table or Latest (B)eta?(S/B) |
| 43 | +set INPUT= |
| 44 | +set /P INPUT=Type input: %=% |
| 45 | +If /I "%INPUT%"=="s" goto stablenode |
| 46 | +If /I "%INPUT%"=="b" goto betanode |
| 47 | +:stablenode |
| 48 | +echo Here is the stable version of node |
| 49 | +choco install -y nodejs-lts |
| 50 | +goto Ask3 |
| 51 | +:betanode |
| 52 | +echo Here is the lastest version of node |
| 53 | +choco install -y nodejs.install |
| 54 | +goto Ask3 |
| 55 | + |
| 56 | +:::::::::::::::::::::::::::::::::::::::::::::: |
| 57 | +:Ask3 |
| 58 | +echo Would you like to install Yarn yes/no?(y/n) |
| 59 | +set INPUT= |
| 60 | +set /P INPUT=Type input: %=% |
| 61 | +If /I "%INPUT%"=="y" goto yarnyes |
| 62 | +If /I "%INPUT%"=="n" goto yarnno |
| 63 | +:yarnyes |
| 64 | +echo Installing Yarn: |
| 65 | +choco install -y yarn |
| 66 | +goto Ask5 |
| 67 | +:yarnno |
| 68 | +echo ******************************************* |
| 69 | +pause |
| 70 | +goto Ask5 |
| 71 | +:::::::::::::::::::::::::::::::::::::::::::::: |
| 72 | +:Ask5 |
| 73 | +echo Would you like to install Atom yes/no?(y/n) |
| 74 | +set INPUT= |
| 75 | +set /P INPUT=Type input: %=% |
| 76 | +If /I "%INPUT%"=="y" goto atomyes |
| 77 | +If /I "%INPUT%"=="n" goto atomno |
| 78 | +:atomyes |
| 79 | +echo Installing Atom from Atom.io... |
| 80 | +choco install -y atom |
| 81 | +goto Ask6 |
| 82 | +:atomno |
| 83 | +echo ******************************************* |
| 84 | +goto Ask6 |
| 85 | + |
| 86 | +:::::::::::::::::::::::::::::::::::::::::::: |
| 87 | +:Ask6 |
| 88 | +echo Would you like to install VisualStudio Code yes/no?(y/n) |
| 89 | +set INPUT= |
| 90 | +set /P INPUT=Type input: %=% |
| 91 | +If /I "%INPUT%"=="y" goto vsyes |
| 92 | +If /I "%INPUT%"=="n" goto vsno |
| 93 | +:vsyes |
| 94 | +echo Installing VSCode... |
| 95 | +choco install -y visualstudiocode |
| 96 | +goto Ask7 |
| 97 | +:vsno |
| 98 | +echo ******************************************* |
| 99 | +goto Ask7 |
| 100 | + |
| 101 | +::::::::::::::::::::::::::::::::::::::::::::: |
| 102 | +:Ask7 |
| 103 | +echo Would you like to install Cmder yes/no?(y/n) |
| 104 | +set INPUT= |
| 105 | +set /P INPUT=Type input: %=% |
| 106 | +If /I "%INPUT%"=="y" goto cmderyes |
| 107 | +If /I "%INPUT%"=="n" goto cmderno |
| 108 | +:cmderyes |
| 109 | +echo Installing Cmder... |
| 110 | +choco install -y Cmder |
| 111 | +:cmderno |
| 112 | +goto exit |
| 113 | +:exit |
| 114 | +echo Everything has been installed, have fun hacking ;) |
| 115 | +TIMEOUT /T 10 |
| 116 | +exit |
| 117 | +:superexit |
| 118 | +exit |
0 commit comments