-
Notifications
You must be signed in to change notification settings - Fork 0
/
windows.ps1
128 lines (105 loc) · 3.64 KB
/
windows.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
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
119
120
121
122
123
124
125
126
127
128
if (!(New-Object Security.Principal.WindowsPrincipal([Security.Principal.WindowsIdentity]::GetCurrent())).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator))
{
Write-Output "You need elevated privileges to run this script."
exit
}
$standardPackages = @(
# core
"7zip.7zip",
"Git.Git",
"AutoHotkey.AutoHotkey",
"Microsoft.OneDrive",
"Bitwarden.Bitwarden",
# browser
"Google.Chrome",
# font
"SourceFoundry.HackFonts",
# console
"Microsoft.PowerShell",
# suite
"Microsoft.Office",
"Adobe.CreativeCloud",
# utility
"Microsoft.PowerToys",
"Microsoft.Sysinternals",
"SumatraPDF.SumatraPDF",
"ScooterSoftware.BeyondCompare.5", #....... apply license
"FineprintSoftware.FinePrint", #........... apply license, icon(s) in wrong start menu
"den4b.ReNamer", #......................... apply license
"")
$optionalPackages = @(
# utility
"REALiX.HWiNFO",
# audio
"Audacity.Audacity",
# video
"VideoLAN.VLC",
"HandBrake.HandBrake",
"MoritzBunkus.MKVToolNix",
# photo/illustration
"GIMP.GIMP",
"Inkscape.Inkscape", #..................... icon(s) in wrong start menu
"KDE.Krita",
# print/scan
"Cyanfish.NAPS2",
# 3d / cad
"BlenderFoundation.Blender", #............. icon(s) in wrong start menu
"FreeCAD.FreeCAD",
"KiCad.KiCad",
"Prusa3D.PrusaSlicer",
# text
# "calibre.calibre",
"JohnMacFarlane.Pandoc",
# programming
"Microsoft.VisualStudioCode",
"WerWolv.ImHex",
# networking
"Famatech.AdvancedIPScanner",
"tailscale.tailscale",
"WiresharkFoundation.Wireshark",
"WinSCP.WinSCP",
# storage
"Rclone.Rclone",
"Rufus.Rufus",
"PowerSoftware.AnyBurn",
"AntibodySoftware.WizTree",
"CrystalDewWorld.CrystalDiskInfo",
"CrystalDewWorld.CrystalDiskMark",
# gaming
"Valve.Steam",
"Microsoft.OpenJDK.21" #................... for minecraft / prism launcher
"")
# STANDARD PACKAGES
if ((Read-Host "Install Standard Packages? (y/n)") -eq "y")
{
$standardPackages | ForEach-Object { if ($_) { winget install --scope machine -e --id $_ }}
# no machine scope
winget install -e --id "Microsoft.WindowsTerminal"
}
# OPTIONAL PACKAGES
if ((Read-Host "Install Optional Packages? (y/n)") -eq "y")
{
$optionalPackages | ForEach-Object { if ($_) { winget install --scope machine -e --id $_ }}
# no machine scope
winget install -e --id "PrismLauncher.PrismLauncher"
}
# SERVARR PACKAGES
if ((Read-Host "Install Servarr Packages? (y/n)") -eq "y")
{
winget install -e --id "Plex.PlexMediaServer"
winget install -e --id "SABnzbdTeam.SABnzbd"
winget install -e --id "qBittorrent.qBittorrent"
winget install -e --id "AppWork.JDownloader" # software installs to Program Files but shortcuts to user!?
winget install -e --id "TeamSonarr.Sonarr" --override "/silent /mergetasks=startupshortcut"
winget install -e --id "TeamRadarr.Radarr" --override "/silent /mergetasks=startupshortcut"
winget install -e --id "TeamLidarr.Lidarr" --override "/silent /mergetasks=startupshortcut"
winget install -e --id "TeamReadarr.Readarr" --override "/silent /mergetasks=startupshortcut"
winget install -e --id "TeamProwlarr.Prowlarr" --override "/silent /mergetasks=startupshortcut"
# pin self-updating / problematically-versioned items
winget pin add -e --id "Plex.PlexMediaServer"
winget pin add -e --id "TeamSonarr.Sonarr"
winget pin add -e --id "TeamRadarr.Radarr"
winget pin add -e --id "TeamLidarr.Lidarr"
winget pin add -e --id "TeamReadarr.Readarr"
winget pin add -e --id "TeamProwlarr.Prowlarr"
}