@@ -181,6 +181,8 @@ Foreach ($Module in $Modules)
181
181
182
182
# ----------------------------------------------------------[Declarations]----------------------------------------------------------
183
183
184
+ # region Declarations
185
+
184
186
$appShortName = " Zoom"
185
187
$appName = " Zoom Client for VDI"
186
188
$appProcesses = @ (" Zoom" , " Zoom_launcher" , " ZoomOutlookIMPlugin" )
@@ -194,16 +196,19 @@ $appVersion = $Evergreen.Version
194
196
$appURL = $Evergreen.URI
195
197
$appSetup = ((Split-Path - Path $appURL - Leaf).Trim(" ?archType=$appArchitecture " ))
196
198
$appDestination = " $env: ProgramFiles \ZoomVDI\bin"
197
- $appUninstallerURL = " https://support .zoom.us/hc/en-us/article_attachments/360084068792 /CleanZoom.zip"
199
+ $appUninstallerURL = " https://assets .zoom.us/docs/msi-templates /CleanZoom.zip"
198
200
$appUninstallerZip = Split-Path - Path $appUninstallerURL - Leaf
199
201
$appUninstallerSetup = " CleanZoom.exe"
200
202
[boolean ]$isAppInstalled = [boolean ](Get-InstalledApplication - Name " $appName " )
201
203
$appInstalledVersion = If ($isAppInstalled ) { Get-FileVersion - File " $appDestination \Installer.exe" }
202
204
$appInstalledVersion = $appInstalledVersion.Replace (" ," , " ." )
203
205
206
+ # endregion
204
207
205
208
# -----------------------------------------------------------[Execution]------------------------------------------------------------
206
209
210
+ # region Execution
211
+
207
212
If ([version ]$appVersion -gt [version ]$appInstalledVersion )
208
213
{
209
214
Set-Location - Path $appScriptPath
@@ -288,4 +293,6 @@ If ([version]$appVersion -gt [version]$appInstalledVersion)
288
293
Else
289
294
{
290
295
Write-Log - Message " $appName $appInstalledVersion is already installed." - Severity 1 - LogType CMTrace - WriteHost $True
291
- }
296
+ }
297
+
298
+ # endregion
0 commit comments