-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathunattended-install.ps1
116 lines (102 loc) · 2.55 KB
/
unattended-install.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
# Requires -RunAsAdministrator
# invoke in Admin-launched Powershell via: Set-ExecutionPolicy Bypass -Scope Process -Force; .\unattended-install.ps1
# Unattended install of various packages. See https://community.chocolatey.org/
# Download and run the Chocolatey install script
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072;
iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
Write-Host "Chocolatey has been installed successfully."
# List of packages to install
$packages = @(
'googledrive',
'7zip',
'chocolateygui',
'autohotkey',
'revo-uninstaller',
'bind-toolsonly',
'sysinternals',
'hwmonitor',
'ipnetinfo',
'cygwin',
'cyg-get',
'keepass',
'keepass-plugin-keetheme',
'keybase',
'powertoys',
'processhacker',
'procexp',
'rpi-imager',
'sharex',
'systeminformer-nightlybuilds',
'unifying',
'Wget',
'vcxsrv',
'winaero-tweaker',
'WinDirStat',
'winhotkey',
'wireshark',
'openhardwaremonitor',
'rufus',
# DevOps packages
'winscp',
'git',
'insomnia',
'putty',
# Browsers
'brave',
'Firefox',
'GoogleChrome',
# Media packages
# 'cdburnerxp',
'flicflac',
'jellyfin',
'soulseek',
'telegram',
'vlc',
'winamp',
# AI packages
'docker-desktop',
'cuda',
# Productivity packages
'dbeaver',
'dos2unix',
'foxitreader',
'freecad',
'openscad',
'photogimp',
'Ghostscript',
'instanteyedropper',
'large-text-file-viewer',
'libreoffice',
'mupdf',
'vscode',
'winmerge',
'wireguard',
'tortoisegit',
'nodejs',
'nvm',
'pnpm'
# Optional packages
# 'rawtherapee',
# 'previewconfig',
# 'awscli',
# 'cloudflared',
# 'filezilla',
# 'joplin',
# 'duplicati'
)
# Install each package silently
foreach ($package in $packages) {
try {
Write-Host "Installing $package..."
choco install $package -y --no-progress
Write-Host "$package has been installed successfully."
} catch {
Write-Host "Failed to install $package. Error: $_"
}
}
Write-Host "All packages have been installed."
# Allow scripts to be run in Powershell (e.g. npm)
echo A | Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine
npm -v
# Show serial number:
GWMI -Class Win32_Bios | select SerialNumber