/
Install-MicrosoftVisualC++x86x64.wsf
519 lines (429 loc) · 20.4 KB
/
Install-MicrosoftVisualC++x86x64.wsf
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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
<job id="Install-MicrosoftVisualC++x86x64">
<script language="VBScript" src="..\..\scripts\ZTIUtility.vbs"/>
<script language="VBScript">
'//----------------------------------------------------------------------------
'// Purpose: Used to install Microsoft Visual C++ Redistributable Packages
'//
'// Usage: cscript Install-MicrosoftVisualC++x86x64.wsf [/debug:true]
'// Version: 1.1 - August 8, 2012 - Johan Arwidmark
'// Version: 2.1 - June 26, 2014 - Mikael Nystrom
'// Version: 2.2 - March 12, 2017 - Johan Arwidmark
'// Version: 2.3 - April 18, 2017 - Henrik Bacher
'// Version: 2.4 - September 6, 2017 - Christoph Voigt
'// Version: 2.5 - October 4, 2018 - Johan Arwidmark
'// Version: 2.5.1 - August 12, 2019 - Baard Hermansen
'// Version: 2.6 - November 27, 2019 - Ramón Isasi
'// Version: 22.7.18.1 - Sean Huggans
'//
'// Twitter: @jarwidmark
'// Blog : http://deploymentresearch.com
'//
'// Twitter: @mikael_nystrom
'// Blog : http://deploymentbunny.com
'//
'// Twitter: @Bacher
'// Blog : https://nosnik.dk/
'//
'// Twitter: @spucktier
'//
'// Twitter: @Bahusafoo
'// Blog : https://bahusa.net/
'//
'// Disclaimer:
'// This script is provided "AS IS" with no warranties, confers no rights and
'// is not supported by the authors or Deployment Artist.
Option Explicit
Dim iRetVal
'On Error Resume Next
iRetVal = ZTIProcess
ProcessResults iRetVal
On Error Goto 0
'//---------------------------------------------------------------------------
'// Function: ZTIProcess()
'//---------------------------------------------------------------------------
Function ZTIProcess()
oLogging.CreateEntry oUtility.ScriptName & ": Starting installation", LogTypeInfo
'// Removed Visual C++ 2005 since it's no longer supported (and don't get security updates)
'Dim sSetupFile2005x86
'Dim sSetupFile2005x64
'//
'// Removed Visual C++ 2008 since it's no longer supported (and don't get security updates)
'Dim sSetupFile2008x86
'Dim sSetupFile2008x64
'// Removed Visual C++ 2010 since it's no longer supported (and don't get security updates)
'Dim sSetupFile2010x86
'Dim sSetupFile2010x64
Dim sSetupFile2012x86
Dim sSetupFile2012x64
Dim sSetupFile2013x86
Dim sSetupFile2013x64
'// Removed Visual C++ 2015 since it's replaced with 2017
'// (Visual C++ 2017 is a binary-compatible in-place upgrade of Visual C++ 2015)
'Dim sSetupFile2015x86
'Dim sSetupFile2015x64
'// Removed Visual C++ 2017 since it's replaced with 2019
'// (Visual C++ 2019 is a binary-compatible in-place upgrade of Visual C++ 2015 and 2017)
'Dim sSetupFile2017x86
'Dim sSetupFile2017x64
'// Removed Visual C++ 2019 since it's replaced with 2022
'// (Visual C++ 2022 is a binary-compatible in-place upgrade of Visual C++ 2015, 2017 ans 2019)
'Dim sSetupFile2019x86
'Dim sSetupFile2019x64
Dim sSetupFile2022x86
Dim sSetupFile2022x64
Dim sArguments
'// Disable Zone Checks
oEnv("SEE_MASK_NOZONECHECKS") = 1
'// Note: You need to create the below folder structure and downloading the various redistributable packages from Microsoft
'// https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads
'// Removed Visual C++ 2005 since it's no longer supported (and don't get security updates)
'sSetupFile2005x86 = oUtility.ScriptDir & "\Source\VC2005\vcredist_x86.exe"
'sSetupFile2005x64 = oUtility.ScriptDir & "\Source\VC2005\vcredist_x64.exe"
'//
'// Removed Visual C++ 2008 since it's no longer supported (and don't get security updates)
'sSetupFile2008x86 = oUtility.ScriptDir & "\Source\VC2005\vcredist_x86.exe"
'sSetupFile2008x64 = oUtility.ScriptDir & "\Source\VC2005\vcredist_x64.exe"
'// Removed Visual C++ 2010 since it's no longer supported (and don't get security updates)
'sSetupFile2010x86 = oUtility.ScriptDir & "\Source\VS2010\vcredist_x86.exe"
'sSetupFile2010x64 = oUtility.ScriptDir & "\Source\VS2010\vcredist_x64.exe"
sSetupFile2012x86 = oUtility.ScriptDir & "\Source\VS2012\vcredist_x86.exe"
sSetupFile2012x64 = oUtility.ScriptDir & "\Source\VS2012\vcredist_x64.exe"
sSetupFile2013x86 = oUtility.ScriptDir & "\Source\VS2013\vcredist_x86.exe"
sSetupFile2013x64 = oUtility.ScriptDir & "\Source\VS2013\vcredist_x64.exe"
'// Removed Visual C++ 2015 since it's replaced with 2017
'sSetupFile2015x86 = oUtility.ScriptDir & "\Source\VS2015\mu_visual_cpp_2015_redistributable_update_3_x86_9052536.exe"
'sSetupFile2015x64 = oUtility.ScriptDir & "\Source\VS2015\mu_visual_cpp_2015_redistributable_update_3_x64_9052538.exe"
'sSetupFile2017x86 = oUtility.ScriptDir & "\Source\VS2017\mu_visual_cpp_redistributable_for_visual_studio_2017_version_15.3_x86_11100229.exe"
'sSetupFile2017x64 = oUtility.ScriptDir & "\Source\VS2017\mu_visual_cpp_redistributable_for_visual_studio_2017_version_15.3_x64_11100230.exe"
'// Removed Visual C++ 2019 since it's replaced with 2022
'sSetupFile2019x86 = oUtility.ScriptDir & "\Source\VS2019\vc_redist.x86.exe"
'sSetupFile2019x64 = oUtility.ScriptDir & "\Source\VS2019\vc_redist.x64.exe"
sSetupFile2022x86 = oUtility.ScriptDir & "\Source\VS2022\vc_redist.x86.exe"
sSetupFile2022x64 = oUtility.ScriptDir & "\Source\VS2022\vc_redist.x64.exe"
sArguments = "/Q"
'Checking for x86 files
'// Removed Visual C++ 2005 since it's no longer supported (and don't get security updates)
'If not oFSO.FileExists(sSetupFile2005x86) then
' oLogging.CreateEntry oUtility.ScriptName & ": " & sSetupFile2005x86 & " was not found, unable to install", LogTypeError
' ZTIProcess = Failure
' Exit Function
'End if
'//
'// Removed Visual C++ 2008 since it's no longer supported (and don't get security updates)
'If not oFSO.FileExists(sSetupFile2008x86) then
' oLogging.CreateEntry oUtility.ScriptName & ": " & sSetupFile2005x86 & " was not found, unable to install", LogTypeError
' ZTIProcess = Failure
' Exit Function
'End if
'//
'// Removed Visual C++ 2010 since it's no longer supported (and don't get security updates)
'If not oFSO.FileExists(sSetupFile2010x86) then
' oLogging.CreateEntry oUtility.ScriptName & ": " & sSetupFile2010x86 & " was not found, unable to install", LogTypeError
' ZTIProcess = Failure
' Exit Function
'End if
'//
If not oFSO.FileExists(sSetupFile2012x86) then
oLogging.CreateEntry oUtility.ScriptName & ": " & sSetupFile2012x86 & " was not found, unable to install", LogTypeError
ZTIProcess = Failure
Exit Function
End if
If not oFSO.FileExists(sSetupFile2013x86) then
oLogging.CreateEntry oUtility.ScriptName & ": " & sSetupFile2013x86 & " was not found, unable to install", LogTypeError
ZTIProcess = Failure
Exit Function
End if
'// Removed Visual C++ 2015 since it's replaced with 2017
'If not oFSO.FileExists(sSetupFile2015x86) then
' oLogging.CreateEntry oUtility.ScriptName & ": " & sSetupFile2015x86 & " was not found, unable to install", LogTypeError
' ZTIProcess = Failure
' Exit Function
'End if
'// Removed Visual C++ 2017 since it's replaced with 2019
'If not oFSO.FileExists(sSetupFile2017x86) then
' oLogging.CreateEntry oUtility.ScriptName & ": " & sSetupFile2017x86 & " was not found, unable to install", LogTypeError
' ZTIProcess = Failure
' Exit Function
'End if
'// Removed Visual C++ 2019 since it's replaced with 2022
'If not oFSO.FileExists(sSetupFile2019x86) then
' oLogging.CreateEntry oUtility.ScriptName & ": " & sSetupFile2019x86 & " was not found, unable to install", LogTypeError
' ZTIProcess = Failure
' Exit Function
'End if
If not oFSO.FileExists(sSetupFile2022x86) then
oLogging.CreateEntry oUtility.ScriptName & ": " & sSetupFile2022x86 & " was not found, unable to install", LogTypeError
ZTIProcess = Failure
Exit Function
End if
' Installing x86 files
'// Removed Visual C++ 2005 since it's no longer supported (and does not receive security updates anymore)
'// Installing Visual C++ 2005 x86
' oLogging.CreateEntry oUtility.ScriptName & ": About to install " & sSetupFile2005x86, LogTypeInfo
' iRetVal = oUtility.RunWithHeartbeat("""" & sSetupFile2005x86 & """ " & sArguments)
' if (iRetVal = 0) or (iRetVal = 3010) then
' ZTIProcess = Success
'Else
' ZTIProcess = Failure
'End If
' oLogging.CreateEntry oUtility.ScriptName & ": Return code from command = " & iRetVal, LogTypeInfo
' oLogging.CreateEntry oUtility.ScriptName & ": Finished installation", LogTypeInfo
'//
'// Removed Visual C++ 2008 since it's no longer supported (and does not receive security updates anymore)
'// Installing Visual C++ 2008 x86
' oLogging.CreateEntry oUtility.ScriptName & ": About to install " & sSetupFile2008x86, LogTypeInfo
' iRetVal = oUtility.RunWithHeartbeat("""" & sSetupFile2008x86 & """ " & sArguments)
' if (iRetVal = 0) or (iRetVal = 3010) then
' ZTIProcess = Success
'Else
' ZTIProcess = Failure
'End If
' oLogging.CreateEntry oUtility.ScriptName & ": Return code from command = " & iRetVal, LogTypeInfo
' oLogging.CreateEntry oUtility.ScriptName & ": Finished installation", LogTypeInfo
'//
'// Removed Visual C++ 2010 since it's no longer supported (and don't get security updates)
'// Installing Visual C++ 2010 x86
'oLogging.CreateEntry oUtility.ScriptName & ": About to install " & sSetupFile2010x86, LogTypeInfo
'iRetVal = oUtility.RunWithHeartbeat("""" & sSetupFile2010x86 & """ " & sArguments)
'
'if (iRetVal = 0) or (iRetVal = 3010) then
' ZTIProcess = Success
'Else
' ZTIProcess = Failure
'End If
'
'oLogging.CreateEntry oUtility.ScriptName & ": Return code from command = " & iRetVal, LogTypeInfo
'oLogging.CreateEntry oUtility.ScriptName & ": Finished installation", LogTypeInfo
'//
'// Installing Visual C++ 2012 x86
oLogging.CreateEntry oUtility.ScriptName & ": About to install " & sSetupFile2012x86, LogTypeInfo
iRetVal = oUtility.RunWithHeartbeat("""" & sSetupFile2012x86 & """ " & sArguments)
if (iRetVal = 0) or (iRetVal = 3010) then
ZTIProcess = Success
Else
ZTIProcess = Failure
End If
oLogging.CreateEntry oUtility.ScriptName & ": Return code from command = " & iRetVal, LogTypeInfo
oLogging.CreateEntry oUtility.ScriptName & ": Finished installation", LogTypeInfo
'// Modified installation switch due to changes introduced from version 2013 and newer
sArguments = "/quiet /norestart"
'// Installing Visual C++ 2013 x86
oLogging.CreateEntry oUtility.ScriptName & ": About to install " & sSetupFile2013x86, LogTypeInfo
iRetVal = oUtility.RunWithHeartbeat("""" & sSetupFile2013x86 & """ " & sArguments)
if (iRetVal = 0) or (iRetVal = 3010) then
ZTIProcess = Success
Else
ZTIProcess = Failure
End If
oLogging.CreateEntry oUtility.ScriptName & ": Return code from command = " & iRetVal, LogTypeInfo
oLogging.CreateEntry oUtility.ScriptName & ": Finished installation", LogTypeInfo
'// Removed Visual C++ 2015 since it's replaced with 2017
'// Installing Visual C++ 2015 x86
'oLogging.CreateEntry oUtility.ScriptName & ": About to install " & sSetupFile2015x86, LogTypeInfo
'iRetVal = oUtility.RunWithHeartbeat("""" & sSetupFile2015x86 & """ " & sArguments)
'if (iRetVal = 0) or (iRetVal = 3010) then
' ZTIProcess = Success
'Else
' ZTIProcess = Failure
'End If
'oLogging.CreateEntry oUtility.ScriptName & ": Return code from command = " & iRetVal, LogTypeInfo
'oLogging.CreateEntry oUtility.ScriptName & ": Finished installation", LogTypeInfo
'// Removed Visual C++ 2017 since it's replaced with 2019
'// Installing Visual C++ 2017 x86
'oLogging.CreateEntry oUtility.ScriptName & ": About to install " & sSetupFile2017x86, LogTypeInfo
'iRetVal = oUtility.RunWithHeartbeat("""" & sSetupFile2017x86 & """ " & sArguments)
'
'if (iRetVal = 0) or (iRetVal = 3010) then
' ZTIProcess = Success
'Else
' ZTIProcess = Failure
'End If
'// Removed Visual C++ 2019 since it's replaced with 2022
'// Installing Visual C++ 2019 x86
'oLogging.CreateEntry oUtility.ScriptName & ": About to install " & sSetupFile2019x86, LogTypeInfo
'iRetVal = oUtility.RunWithHeartbeat("""" & sSetupFile2019x86 & """ " & sArguments)
'
'if (iRetVal = 0) or (iRetVal = 3010) then
' ZTIProcess = Success
'Else
' ZTIProcess = Failure
'End If
'
'oLogging.CreateEntry oUtility.ScriptName & ": Return code from command = " & iRetVal, LogTypeInfo
'oLogging.CreateEntry oUtility.ScriptName & ": Finished installation", LogTypeInfo
'// Installing Visual C++ 2022 x86
oLogging.CreateEntry oUtility.ScriptName & ": About to install " & sSetupFile2022x86, LogTypeInfo
iRetVal = oUtility.RunWithHeartbeat("""" & sSetupFile2022x86 & """ " & sArguments)
if (iRetVal = 0) or (iRetVal = 3010) then
ZTIProcess = Success
Else
ZTIProcess = Failure
End If
oLogging.CreateEntry oUtility.ScriptName & ": Return code from command = " & iRetVal, LogTypeInfo
oLogging.CreateEntry oUtility.ScriptName & ": Finished installation", LogTypeInfo
' If x64 operating system, also install x64 version
If oEnvironment.Item("Architecture") = "X64" then
'Checking for x64 files
'// Removed Visual C++ 2005 since it's no longer supported (and does not receive security updates anymore)
'If not oFSO.FileExists(sSetupFile2005x64) then
' oLogging.CreateEntry oUtility.ScriptName & ": " & sSetupFile2005x64 & " was not found, unable to install", LogTypeError
' ZTIProcess = Failure
' Exit Function
'End if
'//
'// Removed Visual C++ 2008 since it's no longer supported (and does not receive security updates anymore)
'If not oFSO.FileExists(sSetupFile2008x64) then
' oLogging.CreateEntry oUtility.ScriptName & ": " & sSetupFile2008x64 & " was not found, unable to install", LogTypeError
' ZTIProcess = Failure
' Exit Function
'End if
'//
'// Removed Visual C++ 2010 since it's no longer supported (and does not receive security updates anymore)
'If not oFSO.FileExists(sSetupFile2010x64) then
' oLogging.CreateEntry oUtility.ScriptName & ": " & sSetupFile2010x64 & " was not found, unable to install", LogTypeError
' ZTIProcess = Failure
' Exit Function
'End if
If not oFSO.FileExists(sSetupFile2012x64) then
oLogging.CreateEntry oUtility.ScriptName & ": " & sSetupFile2012x64 & " was not found, unable to install", LogTypeError
ZTIProcess = Failure
Exit Function
End if
If not oFSO.FileExists(sSetupFile2013x64) then
oLogging.CreateEntry oUtility.ScriptName & ": " & sSetupFile2013x64 & " was not found, unable to install", LogTypeError
ZTIProcess = Failure
Exit Function
End if
'// Removed Visual C++ 2015 since it's replaced with 2017
'If not oFSO.FileExists(sSetupFile2015x64) then
' oLogging.CreateEntry oUtility.ScriptName & ": " & sSetupFile2015x64 & " was not found, unable to install", LogTypeError
' ZTIProcess = Failure
' Exit Function
'End if
'// Removed Visual C++ 2017 since it's replaced with 2019
'If not oFSO.FileExists(sSetupFile2017x64) then
' oLogging.CreateEntry oUtility.ScriptName & ": " & sSetupFile2017x64 & " was not found, unable to install", LogTypeError
' ZTIProcess = Failure
' Exit Function
'End if
'// Removed Visual C++ 2019 since it's replaced with 2022
'If not oFSO.FileExists(sSetupFile2019x64) then
' oLogging.CreateEntry oUtility.ScriptName & ": " & sSetupFile2019x64 & " was not found, unable to install", LogTypeError
' ZTIProcess = Failure
' Exit Function
'End if
If not oFSO.FileExists(sSetupFile2022x64) then
oLogging.CreateEntry oUtility.ScriptName & ": " & sSetupFile2019x64 & " was not found, unable to install", LogTypeError
ZTIProcess = Failure
Exit Function
End if
'Installing x64 files
'// Reverting back to old silent installation switch
sArguments = "/Q"
'// Removed Visual C++ 2005 since it's no longer supported (and don't get security updates)
'// Installing Visual C++ 2005 x64
'oLogging.CreateEntry oUtility.ScriptName & ": About to install " & sSetupFile2005x64, LogTypeInfo
'iRetVal = oUtility.RunWithHeartbeat("""" & sSetupFile2005x64 & """ " & sArguments)
'if (iRetVal = 0) or (iRetVal = 3010) then
' ZTIProcess = Success
'Else
' ZTIProcess = Failure
'End If
'oLogging.CreateEntry oUtility.ScriptName & ": Return code from command = " & iRetVal, LogTypeInfo
'oLogging.CreateEntry oUtility.ScriptName & ": Finished installation", LogTypeInfo
'// Removed Visual C++ 2008 since it's no longer supported (and don't get security updates)
'// Installing Visual C++ 2008 x64
'oLogging.CreateEntry oUtility.ScriptName & ": About to install " & sSetupFile2008x64, LogTypeInfo
'iRetVal = oUtility.RunWithHeartbeat("""" & sSetupFile2008x64 & """ " & sArguments)
'if (iRetVal = 0) or (iRetVal = 3010) then
' ZTIProcess = Success
'Else
' ZTIProcess = Failure
'End If
'oLogging.CreateEntry oUtility.ScriptName & ": Return code from command = " & iRetVal, LogTypeInfo
'oLogging.CreateEntry oUtility.ScriptName & ": Finished installation", LogTypeInfo
'// Removed Visual C++ 2010 since it's no longer supported (and don't get security updates)
'// Installing Visual C++ 2010 x64
'oLogging.CreateEntry oUtility.ScriptName & ": About to install " & sSetupFile2010x64, LogTypeInfo
'iRetVal = oUtility.RunWithHeartbeat("""" & sSetupFile2010x64 & """ " & sArguments)
'
'if (iRetVal = 0) or (iRetVal = 3010) then
' ZTIProcess = Success
'Else
' ZTIProcess = Failure
'End If
'
'oLogging.CreateEntry oUtility.ScriptName & ": Return code from command = " & iRetVal, LogTypeInfo
'oLogging.CreateEntry oUtility.ScriptName & ": Finished installation", LogTypeInfo
'// Installing Visual C++ 2012 x64
oLogging.CreateEntry oUtility.ScriptName & ": About to install " & sSetupFile2012x64, LogTypeInfo
iRetVal = oUtility.RunWithHeartbeat("""" & sSetupFile2012x64 & """ " & sArguments)
if (iRetVal = 0) or (iRetVal = 3010) then
ZTIProcess = Success
Else
ZTIProcess = Failure
End If
oLogging.CreateEntry oUtility.ScriptName & ": Return code from command = " & iRetVal, LogTypeInfo
oLogging.CreateEntry oUtility.ScriptName & ": Finished installation", LogTypeInfo
'// Modified installation switch due to changes introduced from version 2013 and newer
sArguments = "/quiet /norestart"
'// Installing Visual C++ 2013 x64
oLogging.CreateEntry oUtility.ScriptName & ": About to install " & sSetupFile2013x64, LogTypeInfo
iRetVal = oUtility.RunWithHeartbeat("""" & sSetupFile2013x64 & """ " & sArguments)
if (iRetVal = 0) or (iRetVal = 3010) then
ZTIProcess = Success
Else
ZTIProcess = Failure
End If
oLogging.CreateEntry oUtility.ScriptName & ": Return code from command = " & iRetVal, LogTypeInfo
oLogging.CreateEntry oUtility.ScriptName & ": Finished installation", LogTypeInfo
'// Removed Visual C++ 2015 since it's replaced with 2017
'// Installing Visual C++ 2015 x64
'oLogging.CreateEntry oUtility.ScriptName & ": About to install " & sSetupFile2015x64, LogTypeInfo
'iRetVal = oUtility.RunWithHeartbeat("""" & sSetupFile2015x64 & """ " & sArguments)
'if (iRetVal = 0) or (iRetVal = 3010) then
' ZTIProcess = Success
'Else
' ZTIProcess = Failure
'End If
'oLogging.CreateEntry oUtility.ScriptName & ": Return code from command = " & iRetVal, LogTypeInfo
'oLogging.CreateEntry oUtility.ScriptName & ": Finished installation", LogTypeInfo
'// Removed Visual C++ 2017 since it's replaced with 2019
'// Installing Visual C++ 20017x64
'oLogging.CreateEntry oUtility.ScriptName & ": About to install " & sSetupFile2017x64, LogTypeInfo
'iRetVal = oUtility.RunWithHeartbeat("""" & sSetupFile2017x64 & """ " & sArguments)
'
'if (iRetVal = 0) or (iRetVal = 3010) then
' ZTIProcess = Success
'Else
' ZTIProcess = Failure
'End If
'// Removed Visual C++ 2019 since it's replaced with 2022
'// Installing Visual C++ 20019x64
'oLogging.CreateEntry oUtility.ScriptName & ": About to install " & sSetupFile2019x64, LogTypeInfo
'iRetVal = oUtility.RunWithHeartbeat("""" & sSetupFile2019x64 & """ " & sArguments)
'
'if (iRetVal = 0) or (iRetVal = 3010) then
' ZTIProcess = Success
'Else
' ZTIProcess = Failure
'End If
'
'oLogging.CreateEntry oUtility.ScriptName & ": Return code from command = " & iRetVal, LogTypeInfo
'oLogging.CreateEntry oUtility.ScriptName & ": Finished installation", LogTypeInfo
'// Installing Visual C++ 2022x64
oLogging.CreateEntry oUtility.ScriptName & ": About to install " & sSetupFile2022x64, LogTypeInfo
iRetVal = oUtility.RunWithHeartbeat("""" & sSetupFile2022x64 & """ " & sArguments)
if (iRetVal = 0) or (iRetVal = 3010) then
ZTIProcess = Success
Else
ZTIProcess = Failure
End If
oLogging.CreateEntry oUtility.ScriptName & ": Return code from command = " & iRetVal, LogTypeInfo
oLogging.CreateEntry oUtility.ScriptName & ": Finished installation", LogTypeInfo
End If
'/// Enable Zone Checks
oEnv.Remove("SEE_MASK_NOZONECHECKS")
End Function
</script>
</job>