@@ -18,6 +18,26 @@ Import-Module -DisableNameChecking $PSScriptRoot\library\UndoFunctions.psm1
18
18
$title = " Windows Toolbox $version "
19
19
$host.UI.RawUI.WindowTitle = $title
20
20
21
+ try {
22
+ # Check if winget is already installed
23
+ $er = (invoke-expression " winget -v" ) 2>&1
24
+ if ($lastexitcode ) { throw $er }
25
+ Write-Host " winget is already installed."
26
+ }
27
+ catch {
28
+ # If winget is not installed. Install it from the Github release
29
+ Write-Host " winget is not found, installing it right now."
30
+
31
+ $download = " https://github.com/microsoft/winget-cli/releases/download/latest/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle"
32
+ Write-Host " Dowloading latest release"
33
+ Invoke-WebRequest - Uri $download - OutFile $PSScriptRoot \winget- latest.appxbundle
34
+
35
+ Write-Host " Installing the package"
36
+ Add-AppxPackage - Path $PSScriptRoot \winget- latest.appxbundle
37
+ }
38
+
39
+
40
+
21
41
$build = (Get-CimInstance Win32_OperatingSystem).version
22
42
if ($build -lt " 10.0.10240" ) {
23
43
Read-Host " Sorry, your Windows version is not supported, and will never be :( . Press Enter to exit"
@@ -85,8 +105,12 @@ $objects = @{
85
105
'Github CLI',
86
106
'Git',
87
107
'JRE 8',
88
- 'Python',
108
+ 'Python 3',
109
+ 'Python 2',
89
110
'PuTTY',
111
+ 'Node.JS',
112
+ 'Vim',
113
+ 'Docker',
90
114
'Windows Subsystem for Linux',
91
115
'Hyper-V'
92
116
)"
@@ -110,7 +134,7 @@ $objects = @{
110
134
)"
111
135
}
112
136
113
- ' Undo Scripts' = " @(
137
+ ' Undo Scripts' = " @(
114
138
'(Re)Enable Telemetry'
115
139
)"
116
140
@@ -165,131 +189,129 @@ do {
165
189
# Browsers
166
190
167
191
" Firefox" {
168
- InstallChoco
169
- choco install firefox
192
+ winget install - e -- id Mozilla.Firefox
170
193
}
171
194
172
195
" Google Chrome" {
173
- InstallChoco
174
- choco install googlechrome
196
+ winget install - e -- id Google.Chrome
175
197
}
176
198
177
199
" Brave" {
178
- InstallChoco
179
- choco install brave
200
+ winget install - e -- id BraveSoftware.BraveBrowser
180
201
}
181
202
182
203
" Vivaldi" {
183
- InstallChoco
184
- choco install vivaldi
204
+ winget install - e -- id VivaldiTechnologies.Vivaldi
185
205
}
186
206
187
207
# Dev Tools
188
208
189
209
" Visual Studio Code" {
190
- InstallChoco
191
- choco install vscode
210
+ winget install - e -- id Microsoft.VisualStudioCode
192
211
}
193
212
194
213
" Atom" {
195
- InstallChoco
196
- choco install atom
214
+ winget install - e -- id GitHub.Atom
197
215
}
198
216
199
217
" Notepad++" {
200
- InstallChoco
201
- choco install notepadplusplus
218
+ winget install - e -- id Notepad++ .Notepad++
202
219
}
203
220
204
221
" Github Desktop" {
205
- InstallChoco
206
- choco install github- desktop
222
+ winget install - e -- id GitHub.GitHubDesktop
207
223
}
208
224
209
225
" Github CLI" {
210
- InstallChoco
211
- choco install gh
226
+ winget install - e -- id GitHub.cli
212
227
}
213
228
214
229
" Git" {
215
- InstallChoco
216
- choco install git
230
+ winget install - e -- id Git.Git
217
231
}
218
232
219
233
" JRE 8" {
220
- InstallChoco
221
- choco install jre8
234
+ winget install - e -- id Oracle.JavaRuntimeEnvironment
222
235
}
223
236
224
- " Python" {
225
- InstallChoco
226
- choco install python
237
+ " Python 3" {
238
+ winget install - e -- id Python.Python.3
239
+ }
240
+
241
+ " Python 2" {
242
+ winget install - e -- id Python.Python.2
227
243
}
228
244
229
245
" PuTTY" {
230
- InstallChoco
231
- choco install putty
246
+ winget install - e -- id PuTTY.PuTTY
247
+ }
248
+
249
+ " Node.JS" {
250
+ winget install - e -- id OpenJS.Nodejs
232
251
}
252
+
253
+ " Vim" {
254
+ winget install - e -- id vim.vim
255
+ }
256
+
257
+ " Docker" {
258
+ winget install - e -- id Docker.DockerDesktop
259
+ }
260
+
233
261
" Windows Subsystem for Linux" {
234
262
InstallWSL
235
263
}
264
+
236
265
" Hyper-V" {
237
266
InstallHyperV
238
267
}
239
268
240
269
# Communication Menu
241
270
242
271
" Discord" {
243
- InstallChoco
244
- choco install discord
272
+ winget install - e -- id Discord.Discord
245
273
}
246
274
247
275
" Slack" {
248
- InstallChoco
249
- choco install slack
276
+ winget install - e -- id SlackTechnologies.Slack
250
277
}
251
278
252
279
" Zoom" {
253
- InstallChoco
254
- choco install zoom
280
+ winget install - e -- id Zoom.Zoom
255
281
}
256
282
257
283
" Skype" {
258
- InstallChoco
259
- choco install skype
284
+ winget install - e -- id Microsoft.Skype
260
285
}
261
286
262
287
# Gaming stuff
263
288
264
289
" Steam" {
265
- InstallChoco
266
- choco install steam
290
+ winget install - e -- id Valve.Steam
267
291
}
268
292
269
293
" OBS Studio" {
270
- InstallChoco
271
- choco install obs- studio
294
+ winget install - e -- id OBSProject.OBSStudio
272
295
}
273
296
274
297
# Multimedia
275
298
276
299
" iTunes" {
277
- InstallChoco
278
- choco install itunes
300
+ winget install - e -- id Apple.iTunes
279
301
}
280
302
281
303
" Spotify" {
282
- InstallChoco
283
- choco install spotify
304
+ winget install - e -- id Spotify.Spotify
284
305
}
285
306
286
307
" VLC" {
287
- InstallChoco
288
- choco install vlc
308
+ winget install - e -- id VideoLAN.VLC
289
309
}
290
310
291
311
# Tweaks
312
+
292
313
# System tweaks
314
+
293
315
" Lower RAM usage" {
294
316
RAM
295
317
}
0 commit comments