-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevTools_Script.ps1
66 lines (55 loc) · 1.96 KB
/
devTools_Script.ps1
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
# installing chocolatey as packagemanager
Write-Host "`n`nInstalling Chocolatey package manager`n`n"
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
Start-Sleep -Seconds 2
# default editor vscode
Write-Host "The choice of editor would be VS Code`n`n"
# select language
Write-Output "Select Language of your choice:"
Write-Output "1. C/C++"
Write-Output "2. Python"
Write-Output "(For multiple choice add space between them like: 1 2 3)"
$choice = Read-Host -Prompt "Enter choice "
# converting input values to array and removing space
$values = @()
for($i=0; $i -lt $choice.Length; $i++){
if($choice[$i] -ne " "){
$values += $choice[$i]
}
}
#installing vscode
Write-Host "`n`nInstalling VS Code`n`n"
choco install vscode -y --force
Start-Sleep -Seconds 2
switch($values){
1 {
Write-Host "`n`nInstalling mingw for gcc and g++`n`n"
#installing gcc,g++
choco install mingw -y --force
Start-Sleep -Seconds 2
Write-Host "`nInstalling cpp extension for vscode`n"
#installing cpp extensions
choco install vscode-cpptools -y --force
Start-Sleep -Seconds 2
}
2 {
Write-Host "`n`nInstalling Python`n`n"
#installing python
choco install python -y --force
Start-Sleep -Seconds 2
Write-Host "`nInstalling python extension for vscode`n"
#installing python extension
choco install vscode-python -y --force
}
Default {
Write-Host "`n`nWrong Choice`n`n"
Exit
}
<<<<<<< HEAD
Write-Output "\n================\nRestarting......\n================\n"
=======
}
Write-Host "`n`nEverything is installed`n`n"
Write-Output "`n================`nRestarting......`n================`n"
>>>>>>> new_feature
Restart-Computer