-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadobe.ps1
More file actions
153 lines (120 loc) · 4.2 KB
/
Copy pathadobe.ps1
File metadata and controls
153 lines (120 loc) · 4.2 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
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
# -------------------------------------------------------------------------------------
# Script : Optional Adobe Products Installation Script
# Author : Raven Limadinata (JAC IT Team)
# Date : 2024/07/25
# Rev. : 1.0.0
# Comments : Installs optional Adobe products for students.
# Dependency: [EXE] adobe/ALC19/Set-up.exe -> Adobe Lightroom Classic 2019
# [EXE] adobe/AAE24/Set-up.exe -> Adobe After Effects 2024
# [EXE] adobe/APP24/Set-up.exe -> Adobe Premiere Pro 2024
# -------------------------------------------------------------------------------------
# ======================
# Check Dependencies
# ======================
Write-Host "Checking dependencies..."
# ::::::::::::::::::::::::::::::::::
# Check Adobe Lightroom Classic 2019
# ::::::::::::::::::::::::::::::::::
Write-Host "Adobe Lightroom Classic 2019: " -NoNewline
if (!(Test-Path "adobe/ALC19/Set-up.exe")) {
Write-Host "Missing!" -ForegroundColor Red
Exit
}
else {
Write-Host "OK." -ForegroundColor Green
}
# ::::::::::::::::::::::::::::::::::
# ::::::::::::::::::::::::::::::
# Check Adobe After Effects 2024
# ::::::::::::::::::::::::::::::
Write-Host "Adobe After Effects 2024: " -NoNewline
if (!(Test-Path "adobe/AAE24/Set-up.exe")) {
Write-Host "Missing!" -ForegroundColor Red
Exit
}
else {
Write-Host "OK." -ForegroundColor Green
}
# ::::::::::::::::::::::::::::::
# :::::::::::::::::::::::::::::
# Check Adobe Premiere Pro 2024
# :::::::::::::::::::::::::::::
Write-Host "Adobe Premiere Pro 2024: " -NoNewline
if (!(Test-Path "adobe/APP24/Set-up.exe")) {
Write-Host "Missing!" -ForegroundColor Red
Exit
}
else {
Write-Host "OK." -ForegroundColor Green
}
# :::::::::::::::::::::::::::::
# ================
# Main Process
# ================
# ::::::::::::::::::::::::::::::::::::
# Install Adobe Lightroom Classic 2019
# ::::::::::::::::::::::::::::::::::::
Write-Host "Installing Adobe Lightroom Classic 2019…"
Start-Process -FilePath "adobe/ALC19/Set-up.exe" -ArgumentList "/S" -Wait
if ($LASTEXITCODE -eq 0) {
if (!(Test-Path "C:\Program Files\Adobe\Adobe Lightroom Classic CC")) {
Write-Host "Adobe Lightroom Classic 2019 installation failed!" -ForegroundColor Red
Exit
}
else {
Write-Host "Adobe Lightroom Classic 2019 installed!" -ForegroundColor Green
}
Write-Host "Adobe Lightroom Classic 2019 installed!" -ForegroundColor Green
}
else {
Write-Host "Adobe Lightroom Classic 2019 installation failed!" -ForegroundColor Red
}
# ::::::::::::::::::::::::::::::::::::
# ::::::::::::::::::::::::::::::::
# Install Adobe After Effects 2024
# ::::::::::::::::::::::::::::::::
Write-Host "Installing Adobe After Effects 2024…"
Start-Process -FilePath "adobe/AAE24/Set-up.exe" -ArgumentList "/S" -Wait
if ($LASTEXITCODE -eq 0) {
if (!(Test-Path "C:\Program Files\Adobe\Adobe After Effects 2024")) {
Write-Host "Adobe After Effects 2024 installation failed!" -ForegroundColor Red
Exit
}
else {
Write-Host "Adobe After Effects 2024 installed!" -ForegroundColor Green
}
}
else {
Write-Host "Adobe After Effects 2024 installation failed!" -ForegroundColor Red
}
# :::::::::::::::::::::::::::::::
# Install Adobe Premiere Pro 2024
# :::::::::::::::::::::::::::::::
Write-Host "Installing Adobe Premiere Pro 2024…"
Start-Process -FilePath "adobe/APP24/Set-up.exe" -ArgumentList "/S" -Wait
if ($LASTEXITCODE -eq 0) {
if (!(Test-Path "C:\Program Files\Adobe\Adobe Premiere Pro 2024")) {
Write-Host "Adobe Premiere Pro 2024 installation failed!" -ForegroundColor Red
Exit
}
else {
Write-Host "Adobe Premiere Pro 2024 installed!" -ForegroundColor Green
}
}
else {
Write-Host "Adobe Premiere Pro 2024 installation failed!" -ForegroundColor Red
}
# :::::::::::::::::::::::::::::::
# ========
# POST
# ========
# Clean up the installation files
Write-Host "Cleaning up installation files…"
Remove-Item -Path "adobe" -Recurse -Force
if (Test-Path "adobe") {
Write-Host "Failed to clean up installation files! Please manually clean up the installation files." -ForegroundColor Red
}
else {
Write-Host "Installation files cleaned up!" -ForegroundColor Green
}
# End of script