-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
chocoinstallsoftware.ps1
166 lines (131 loc) · 5.08 KB
/
chocoinstallsoftware.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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<#
.SYNOPSIS
Install software using Chocolatey.
.DESCRIPTION
This scripts prompts the user for input into whether or not they want certain software installed or not. Once the information has been collected the script will install software that the user has asked for.
It will ask the user if they want to install the following software:
- Zoom
- Slack
- Google Drive
- Google Chrome
- Firefox
- Camtasia
- Snagit
- OBS
- VLC
- Git
- Visual Studio Code
- Windows Terminal
- Elgato Streamdeck
.OUTPUTS
.NOTES
Written by: Sarah Lean
Find me on:
* My Blog: http://www.techielass.com
* Twitter: https://twitter.com/techielass
* LinkedIn: http://uk.linkedin.com/in/sazlean
.EXAMPLE
.\InstallSoftware.ps1
Change Log
V1.00, 4th February 2022 - Initial version
License:
The MIT License (MIT)
Copyright (c) 2022 Sarah Lean
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
#>
do { $zoom = 'Will you need Zoom installed?[Y/N]'
$zoomrsp = Read-Host -Prompt $zoom}
until ("y","n" -contains $zoomrsp)
do { $slack = 'Will you need Slack installed?[Y/N]'
$slackrsp = Read-Host -Prompt $slack}
until ("y","n" -contains $slackrsp)
do { $googledrive = 'Will you need Google Drive installed?[Y/N]'
$googledriversp = Read-Host -Prompt $googledrive}
until ("y","n" -contains $googledriversp)
do { $chrome = 'Will you need Google Chrome installed?[Y/N]'
$chromersp = Read-Host -Prompt $chrome}
until ("y","n" -contains $chromersp)
do { $firefox = 'Will you need Firefox installed?[Y/N]'
$firefoxrsp = Read-Host -Prompt $firefox}
until ("y","n" -contains $firefoxrsp)
do { $camtasia = 'Will you need Camtasia installed? Note: You need a license for this software. [Y/N]'
$camtasiarsp = Read-Host -Prompt $camtasia}
until ("y","n" -contains $camtasiarsp)
do { $snagit = 'Will you need SnagIt installed? Note: You need a license for this software. [Y/N]'
$snagitrsp = Read-Host -Prompt $snagit}
until ("y","n" -contains $snagitrsp)
do { $obs = 'Will you need OBS Studio installed?[Y/N]'
$obsrsp = Read-Host -Prompt $obs}
until ("y","n" -contains $obsrsp)
do { $vlc = 'Will you need VLC installed?[Y/N]'
$vlcrsp = Read-Host -Prompt $vlc}
until ("y","n" -contains $vlcrsp)
do { $git = 'Will you need Git installed?[Y/N]'
$gitrsp = Read-Host -Prompt $git}
until ("y","n" -contains $gitrsp)
do { $vscode = 'Will you need Visual Studio Code installed?[Y/N]'
$vscodersp = Read-Host -Prompt $vscode}
until ("y","n" -contains $vscodersp)
do { $winterm = 'Will you need Windows Terminal installed?[Y/N]'
$wintermrsp = Read-Host -Prompt $winterm}
until ("y","n" -contains $wintermrsp)
do { $streamdeck = 'Will you need Elgato Streamdeck installed?[Y/N]'
$streamdeckrsp = Read-Host -Prompt $streamdeck}
until ("y","n" -contains $streamdeckrsp)
Write-Host "The software you have requested will now be installed. Please feel free to go grab a break and come back in 10minutes. " -ForegroundColor red -BackgroundColor white
# Install Chocolatey via PowerShell elevated
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
if ($camtasiarsp -eq 'y') {
choco install camtasia -y
}
if ($zoomrsp -eq 'y') {
choco install zoom -y
}
if ($slackrsp -eq 'y') {
choco install slack -y
}
if ($googledriversp -eq 'y') {
choco install googledrive -y
}
if ($chromersp -eq 'y') {
choco install googlechrome -y
}
if ($firefoxrsp -eq 'y') {
choco install firefox -y
}
if ($snagitrsp -eq 'y') {
choco install snagit -y
}
if ($obsrsp -eq 'y') {
choco install obs-studio -y
}
if ($vlcrsp -eq 'y') {
choco install vlc -y
}
if ($gitrsp -eq 'y') {
choco install git -y
}
if ($vscodersp -eq 'y') {
choco install visualstudiocode -y
}
if ($wintermrsp -eq 'y') {
choco install microsoft-windows-terminal -y
}
if ($streamdeckrsp -eq 'y') {
choco install streamdeck -y
}
Write-Host "The software is now installed, it is recommended that you restart your machine. " -ForegroundColor red -BackgroundColor white