-
Notifications
You must be signed in to change notification settings - Fork 126
Expand file tree
/
Copy pathUninstallCS3.vbs
More file actions
59 lines (42 loc) · 1.66 KB
/
UninstallCS3.vbs
File metadata and controls
59 lines (42 loc) · 1.66 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
'*******************************************************************************
' Author: Mick Pletcher
' Date: 02 November 2012
' Modified:
'
' Program: Adobe CS3 Uninstaller
' Version:
' Description: This will uninstall Design Standard CS3
'*******************************************************************************
Option Explicit
REM Define Global Variables
DIM RelativePath : Set RelativePath = Nothing
REM Define the relative installation path
DefineRelativePath()
REM Install
Uninstall()
REM Cleanup Global Variables
GlobalVariableCleanup()
'*******************************************************************************
'*******************************************************************************
Sub DefineRelativePath()
REM Get File Name with full relative path
RelativePath = WScript.ScriptFullName
REM Remove file name, leaving relative path only
RelativePath = Left(RelativePath, InStrRev(RelativePath, "\"))
End Sub
'*******************************************************************************
Sub Uninstall()
REM Define Local Objects
DIM oShell : SET oShell = CreateObject("Wscript.Shell")
REM Define Local Variables
DIM Uninstall : Uninstall = RelativePath & "setup.exe" & Chr(32) & "--mode=silent --deploymentFile=" &_
RelativePath & "deployment\uninstall.xml --skipProcessCheck=1"
oShell.Run Uninstall, 1, True
REM Cleanup Local Variables
Set Uninstall = Nothing
Set oShell = Nothing
End Sub
'*******************************************************************************
Sub GlobalVariableCleanup()
Set RelativePath = Nothing
End Sub