-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInstallUpdateDevelopmentMachine.ps1
More file actions
114 lines (101 loc) · 3.75 KB
/
InstallUpdateDevelopmentMachine.ps1
File metadata and controls
114 lines (101 loc) · 3.75 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
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
param(
[switch]$initialInstall,
[switch]$includeNode,
[switch]$includeKotlin,
[switch]$includeDocker
)
$prevforeground = (get-host).ui.rawui.ForegroundColor
$foreground="red"
$background="yellow"
######################################################
# Install apps using Chocolatey
######################################################
if ($initialInstall) {
Write-Host "Installing Chocolatey" -foregroundcolor $foreground -backgroundcolor $background
Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
refreshenv
Write-Host
} else {
Write-Host "Upgrading Chocolatey" -foregroundcolor $foreground -backgroundcolor $background
choco upgrade chocolatey -y
Write-Host
}
Write-Host "Installing/upgrading system applications from Chocolatey" -foregroundcolor $foreground -backgroundcolor $background
choco upgrade powershell-core -y
choco upgrade dropbox -y
choco upgrade 7zip -y
choco upgrade slack -y
choco upgrade veracrypt -y
choco upgrade treesizefree -y
choco upgrade paint.net -y
choco upgrade handbrake -y
choco upgrade vlc -y
choco upgrade powertoys -y
choco upgrade vivaldi -y
choco upgrade adobereader -y
choco upgrade adobereader-update -y
choco upgrade desktopok -y
choco upgrade LinkShellExtension -y
choco upgrade putty -y
choco upgrade chocolateygui -y
choco upgrade cports -y
choco upgrade gsudo -y
choco upgrade inkscape -y
choco upgrade openssl -y
Write-Host
Write-Host "Installing/upgrading system applications with winget" -foregroundcolor $foreground -backgroundcolor $background
winget install Microsoft.PowerShell
winget install JanDeDobbeleer.OhMyPosh # restart shell to reload PATH
winget install Microsoft.WindowsTerminal
winget install Ytmdesktop.Ytmdesktop
Write-Host "Installing Powershell Modules"
powershellget\install-module -Name Terminal-Icons -AllowClobber -Repository PSGallery # need by powershell $PROFILE
powershellget\install-module z -AllowClobber # need by powershell $PROFILE
Write-Host "Installing/upgrading development tools from Chocolatey" -foregroundcolor $foreground -backgroundcolor $background
choco upgrade nuget.commandline -y
choco upgrade sysinternals -y
choco upgrade git -y
choco upgrade git-sizer -y
choco install gitextensions --ignore-dependencies -y
#choco upgrade gh -y
winget upgrade GitHub.cli
choco upgrade poshgit -y
#choco upgrade beyondcompare -y
choco upgrade sublimetext4 -y
choco upgrade postman -y
choco upgrade curl -y
choco upgrade fiddler -y
choco upgrade firacode-ttf -y
choco upgrade cascadia-code-nerd-font -y
choco upgrade roundhouse -y
choco upgrade kubernetes-cli -y
choco upgrade k9s -y
choco upgrade azure-cli -y
winget install GitHub.Copilot
Write-Host "Installing/upgrading development tools from WinGet" -foregroundcolor $foreground -backgroundcolor $background
winget install Microsoft.WinDbg
Write-Host "Installing/upgrading node.js" -foregroundcolor $foreground -backgroundcolor $background
if ($includeNode)
{
#choco upgrade nodejs -y
choco upgrade nodejs-lts -y
}
Write-Host "Installing/upgrading Kotlin/Gradle/OpenJDK" -foregroundcolor $foreground -backgroundcolor $background
if ($includeKotlin)
{
choco upgrade kotlinc -y
choco upgrade gradle -y
choco upgrade openjdk14 -y
}
Write-Host "Installing/upgrading Docker Desktop" -foregroundcolor $foreground -backgroundcolor $background
if ($includeDocker)
{
choco upgrade docker-desktop -y
}
Write-Host "Installing/upgrading vscode" -foregroundcolor $foreground -backgroundcolor $background
choco upgrade VisualStudioCode -y
Write-Host
Write-Host "All done!" -foregroundcolor $foreground -backgroundcolor $background
# resetting foreground color
Write-Host -foregroundcolor $prevforeground
#Set-PSReadlineOption -TokenKind Parameter -ForegroundColor $prevforeground