forked from MicksITBlogs/PowerShell
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path2013RevitBuildingPremiumUninstaller.ps1
395 lines (315 loc) · 15.5 KB
/
2013RevitBuildingPremiumUninstaller.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
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
cls
Function AutoCAD2013English{
#Declare Local Memory
Set-Variable -Name GUID -Value "{5783F2D7-B001-0000-0102-0060B0CE6BBA}" -Scope Local -Force
Set-Variable -Name Arguments -Scope Local -Force
Write-Host "AutoCAD 2013 - English"
$Arguments = "/X"+[char]32+$GUID+[char]32+"/qb- /norestart"
(Start-Process -FilePath "msiexec.exe" -ArgumentList $Arguments -Wait -Passthru).ExitCode
#Cleanup Local Memory
Remove-Variable -Name GUID -Scope Local -Force
Remove-Variable -Name Arguments -Scope Local -Force
}
Function AutodeskRevitInteroperabilityfor3dsMaxand3dsMaxDesign201364-bit{
#Declare Local Memory
Set-Variable -Name GUID -Value "{06E18300-BB64-1664-8E6A-2593FC67BB74}" -Scope Local -Force
Set-Variable -Name Arguments -Scope Local -Force
Write-Host "Autodesk Revit Interoperability for 3ds Max and 3ds Max Design 2013 64-bit"
$Arguments = "/X"+[char]32+$GUID+[char]32+"/qb- /norestart"
(Start-Process -FilePath "msiexec.exe" -ArgumentList $Arguments -Wait -Passthru).ExitCode
#Cleanup Local Memory
Remove-Variable -Name GUID -Scope Local -Force
Remove-Variable -Name Arguments -Scope Local -Force
}
Function AutodeskShowcase201364-bit{
#Declare Local Memory
Set-Variable -Name GUID -Value "{A15BFC7D-6A90-47E6-8C6E-D51B2929D8C8}" -Scope Local -Force
Set-Variable -Name Arguments -Scope Local -Force
Write-Host "Autodesk Showcase 2013 64-bit"
$Arguments = "/X"+[char]32+$GUID+[char]32+"/qb- /norestart"
(Start-Process -FilePath "msiexec.exe" -ArgumentList $Arguments -Wait -Passthru).ExitCode
#Cleanup Local Memory
Remove-Variable -Name GUID -Scope Local -Force
Remove-Variable -Name Arguments -Scope Local -Force
}
Function AutodeskDirectConnect201364-bit{
#Declare Local Memory
Set-Variable -Name GUID -Value "{324297F8-2898-454B-9AC4-07050AEB35B3}" -Scope Local -Force
Set-Variable -Name Arguments -Scope Local -Force
Write-Host "Autodesk DirectConnect 2013 64-bit"
$Arguments = "/X"+[char]32+$GUID+[char]32+"/qb- /norestart"
(Start-Process -FilePath "msiexec.exe" -ArgumentList $Arguments -Wait -Passthru).ExitCode
#Cleanup Local Memory
Remove-Variable -Name GUID -Scope Local -Force
Remove-Variable -Name Arguments -Scope Local -Force
}
Function AutodeskSketchBookDesigner2013{
#Declare Local Memory
Set-Variable -Name GUID -Value "{3CB60177-D3D2-4E9C-BE4D-8372B34B4C7F}" -Scope Local -Force
Set-Variable -Name Arguments -Scope Local -Force
Write-Host "Autodesk SketchBook Designer 2013"
$Arguments = "/X"+[char]32+$GUID+[char]32+"/qb- /norestart"
(Start-Process -FilePath "msiexec.exe" -ArgumentList $Arguments -Wait -Passthru).ExitCode
#Cleanup Local Memory
Remove-Variable -Name GUID -Scope Local -Force
Remove-Variable -Name Arguments -Scope Local -Force
}
Function AutodeskDesignReview201332-bit{
#Declare Local Memory
Set-Variable -Name GUID -Value "{153DB567-6FF3-49AD-AC4F-86F8A3CCFDFB}" -Scope Local -Force
Set-Variable -Name Arguments -Scope Local -Force
Write-Host "Autodesk Design Review 2013 *32-bit*"
$Arguments = "/X"+[char]32+$GUID+[char]32+"/qb- /norestart"
(Start-Process -FilePath "msiexec.exe" -ArgumentList $Arguments -Wait -Passthru).ExitCode
#Cleanup Local Memory
Remove-Variable -Name GUID -Scope Local -Force
Remove-Variable -Name Arguments -Scope Local -Force
}
Function AutodeskInventorFusion2013{
#Declare Local Memory
Set-Variable -Name GUID -Value "{FFF5619F-2013-0064-A85E-9994F70A9E5D}" -Scope Local -Force
Set-Variable -Name Arguments -Scope Local -Force
Write-Host "Autodesk Inventor Fusion 2013"
$Arguments = "/X"+[char]32+$GUID+[char]32+"/qb- /norestart"
(Start-Process -FilePath "msiexec.exe" -ArgumentList $Arguments -Wait -Passthru).ExitCode
#Cleanup Local Memory
Remove-Variable -Name GUID -Scope Local -Force
Remove-Variable -Name Arguments -Scope Local -Force
}
Function AutodeskMaterialLibrary201332-bit{
#Declare Local Memory
Set-Variable -Name GUID -Value "{117EBEEB-5DB0-43C8-9FD6-DD583DB152DD}" -Scope Local -Force
Set-Variable -Name Arguments -Scope Local -Force
Write-Host "Autodesk Material Library 2013 *32-bit*"
$Arguments = "/X"+[char]32+$GUID+[char]32+"/qb- /norestart"
(Start-Process -FilePath "msiexec.exe" -ArgumentList $Arguments -Wait -Passthru).ExitCode
#Cleanup Local Memory
Remove-Variable -Name GUID -Scope Local -Force
Remove-Variable -Name Arguments -Scope Local -Force
}
Function AutodeskMaterialLibraryBaseResolutionImageLibrary2013{
#Declare Local Memory
Set-Variable -Name GUID -Value "{606E12B9-641F-4644-A22A-FF38AE980AFD}" -Scope Local -Force
Set-Variable -Name Arguments -Scope Local -Force
Write-Host "Autodesk Material Library Base Resolution Image Library 2013"
$Arguments = "/X"+[char]32+$GUID+[char]32+"/qb- /norestart"
(Start-Process -FilePath "msiexec.exe" -ArgumentList $Arguments -Wait -Passthru).ExitCode
#Cleanup Local Memory
Remove-Variable -Name GUID -Scope Local -Force
Remove-Variable -Name Arguments -Scope Local -Force
}
Function AutodeskMaterialLibraryLowResolutionImageLibrary2013{
#Declare Local Memory
Set-Variable -Name GUID -Value "{27C6C0A2-2EC9-4FEA-BE2B-659EAAC2C68C}" -Scope Local -Force
Set-Variable -Name Arguments -Scope Local -Force
Write-Host "Autodesk Material Library Low Resolution Image Library 2013"
$Arguments = "/X"+[char]32+$GUID+[char]32+"/qb- /norestart"
(Start-Process -FilePath "msiexec.exe" -ArgumentList $Arguments -Wait -Passthru).ExitCode
#Cleanup Local Memory
Remove-Variable -Name GUID -Scope Local -Force
Remove-Variable -Name Arguments -Scope Local -Force
}
Function AutodeskMaterialLibraryMediumResolutionImageLibrary2013{
#Declare Local Memory
Set-Variable -Name GUID -Value "{58760EEC-8B6A-43F4-81AA-696E381DFADD}" -Scope Local -Force
Set-Variable -Name Arguments -Scope Local -Force
Write-Host "Autodesk Material Library Medium Resolution Image Library 2013"
$Arguments = "/X"+[char]32+$GUID+[char]32+"/qb- /norestart"
(Start-Process -FilePath "msiexec.exe" -ArgumentList $Arguments -Wait -Passthru).ExitCode
#Cleanup Local Memory
Remove-Variable -Name GUID -Scope Local -Force
Remove-Variable -Name Arguments -Scope Local -Force
}
Function AutodeskContentService{
#Declare Local Memory
Set-Variable -Name GUID -Value "{62F029AB-85F2-0000-866A-9FC0DD99DDBC}" -Scope Local -Force
Set-Variable -Name Arguments -Scope Local -Force
Write-Host "Autodesk Content Service"
$Arguments = "/X"+[char]32+$GUID+[char]32+"/qb- /norestart"
(Start-Process -FilePath "msiexec.exe" -ArgumentList $Arguments -Wait -Passthru).ExitCode
#Cleanup Local Memory
Remove-Variable -Name GUID -Scope Local -Force
Remove-Variable -Name Arguments -Scope Local -Force
}
Function AutodeskSync{
#Declare Local Memory
Set-Variable -Name GUID -Value "{EE5F74BC-5CD5-4EF2-86BA-81E6CF46A18F}" -Scope Local -Force
Set-Variable -Name Arguments -Scope Local -Force
Write-Host "Autodesk Sync"
$Arguments = "/X"+[char]32+$GUID+[char]32+"/qb- /norestart"
(Start-Process -FilePath "msiexec.exe" -ArgumentList $Arguments -Wait -Passthru).ExitCode
#Cleanup Local Memory
Remove-Variable -Name GUID -Scope Local -Force
Remove-Variable -Name Arguments -Scope Local -Force
}
Function AutodeskRevit2013{
#Declare Local Memory
Set-Variable -Name GUID -Value "{7346B4A0-1300-0510-0409-705C0D862004}" -Scope Local -Force
Set-Variable -Name Arguments -Scope Local -Force
Write-Host "Autodesk Revit 2013"
$Arguments = "/X"+[char]32+$GUID+[char]32+"/qb- /norestart"
(Start-Process -FilePath "msiexec.exe" -ArgumentList $Arguments -Wait -Passthru).ExitCode
#Cleanup Local Memory
Remove-Variable -Name GUID -Scope Local -Force
Remove-Variable -Name Arguments -Scope Local -Force
}
Function AutoCADArchitecture2013{
#Declare Local Memory
Set-Variable -Name GUID -Value "{5783F2D7-B004-0000-0102-0060B0CE6BBA}" -Scope Local -Force
Set-Variable -Name Arguments -Scope Local -Force
Write-Host "AutoCAD Architecture 2013"
$Arguments = "/X"+[char]32+$GUID+[char]32+"/qb- /norestart"
(Start-Process -FilePath "msiexec.exe" -ArgumentList $Arguments -Wait -Passthru).ExitCode
#Cleanup Local Memory
Remove-Variable -Name GUID -Scope Local -Force
Remove-Variable -Name Arguments -Scope Local -Force
}
Function AutodeskNavisworksSimulate2013{
#Declare Local Memory
Set-Variable -Name GUID -Value "{F17E30E2-7ED4-0000-8A8E-CAB597E3F8ED}" -Scope Local -Force
Set-Variable -Name Arguments -Scope Local -Force
Write-Host "Autodesk Navisworks Simulate 2013"
$Arguments = "/X"+[char]32+$GUID+[char]32+"/qb- /norestart"
(Start-Process -FilePath "msiexec.exe" -ArgumentList $Arguments -Wait -Passthru).ExitCode
#Cleanup Local Memory
Remove-Variable -Name GUID -Scope Local -Force
Remove-Variable -Name Arguments -Scope Local -Force
}
Function AutodeskWorkflowsBuildingDesignSuite2013{
#Declare Local Memory
Set-Variable -Name GUID -Value "{06388E0D-A364-478B-8E40-7D76142A8DF2}" -Scope Local -Force
Set-Variable -Name Arguments -Scope Local -Force
Write-Host "Autodesk Workflows - Building Design Suite 2013"
$Arguments = "/X"+[char]32+$GUID+[char]32+"/qb- /norestart"
(Start-Process -FilePath "msiexec.exe" -ArgumentList $Arguments -Wait -Passthru).ExitCode
#Cleanup Local Memory
Remove-Variable -Name GUID -Scope Local -Force
Remove-Variable -Name Arguments -Scope Local -Force
}
Function AutodeskNavisworksSimulate20132008DWGFileReader{
#Declare Local Memory
Set-Variable -Name GUID -Value "{4F744A9A-3067-4605-8864-DA1658059F0B}" -Scope Local -Force
Set-Variable -Name Arguments -Scope Local -Force
Write-Host "Autodesk Navisworks Simulate 2013 - 2008 DWG File Reader"
$Arguments = "/X"+[char]32+$GUID+[char]32+"/qb- /norestart"
(Start-Process -FilePath "msiexec.exe" -ArgumentList $Arguments -Wait -Passthru).ExitCode
#Cleanup Local Memory
Remove-Variable -Name GUID -Scope Local -Force
Remove-Variable -Name Arguments -Scope Local -Force
}
Function AutodeskNavisworksSimulate20132009DWGFileReader{
#Declare Local Memory
Set-Variable -Name GUID -Value "{07DC9A9D-1793-4EB4-AC1A-70750F9FB72B}" -Scope Local -Force
Set-Variable -Name Arguments -Scope Local -Force
Write-Host "Autodesk Navisworks Simulate 2013 - 2009 DWG File Reader"
$Arguments = "/X"+[char]32+$GUID+[char]32+"/qb- /norestart"
(Start-Process -FilePath "msiexec.exe" -ArgumentList $Arguments -Wait -Passthru).ExitCode
#Cleanup Local Memory
Remove-Variable -Name GUID -Scope Local -Force
Remove-Variable -Name Arguments -Scope Local -Force
}
Function AutodeskNavisworksSimulate20132010DWGFileReader{
#Declare Local Memory
Set-Variable -Name GUID -Value "{0D53A298-B2B7-4746-BB92-B757A6E559C3}" -Scope Local -Force
Set-Variable -Name Arguments -Scope Local -Force
Write-Host "Autodesk Navisworks Simulate 2013 - 2010 DWG File Reader"
$Arguments = "/X"+[char]32+$GUID+[char]32+"/qb- /norestart"
(Start-Process -FilePath "msiexec.exe" -ArgumentList $Arguments -Wait -Passthru).ExitCode
#Cleanup Local Memory
Remove-Variable -Name GUID -Scope Local -Force
Remove-Variable -Name Arguments -Scope Local -Force
}
Function AutodeskNavisworksSimulate20132011DWGFileReader{
#Declare Local Memory
Set-Variable -Name GUID -Value "{107CB1E9-DDA9-40B5-8A6D-325361402200}" -Scope Local -Force
Set-Variable -Name Arguments -Scope Local -Force
Write-Host "Autodesk Navisworks Simulate 2013 - 2011 DWG File Reader"
$Arguments = "/X"+[char]32+$GUID+[char]32+"/qb- /norestart"
(Start-Process -FilePath "msiexec.exe" -ArgumentList $Arguments -Wait -Passthru).ExitCode
#Cleanup Local Memory
Remove-Variable -Name GUID -Scope Local -Force
Remove-Variable -Name Arguments -Scope Local -Force
}
Function Revit2013LanguagePackEnglish{
#Declare Local Memory
Set-Variable -Name GUID -Value "{7346B4A0-1300-0511-0409-705C0D862004}" -Scope Local -Force
Set-Variable -Name Arguments -Scope Local -Force
Write-Host "Revit 2013 Language Pack - English"
$Arguments = "/X"+[char]32+$GUID+[char]32+"/qb- /norestart"
(Start-Process -FilePath "msiexec.exe" -ArgumentList $Arguments -Wait -Passthru).ExitCode
#Cleanup Local Memory
Remove-Variable -Name GUID -Scope Local -Force
Remove-Variable -Name Arguments -Scope Local -Force
}
Function AutodeskNavisworksSimulate20132012DWGFileReader{
#Declare Local Memory
Set-Variable -Name GUID -Value "{90A2F9D3-3E5E-4EF4-BC83-E7795CEF1A42}" -Scope Local -Force
Set-Variable -Name Arguments -Scope Local -Force
Write-Host "Autodesk Navisworks Simulate 2013 - 2012 DWG File Reader"
$Arguments = "/X"+[char]32+$GUID+[char]32+"/qb- /norestart"
(Start-Process -FilePath "msiexec.exe" -ArgumentList $Arguments -Wait -Passthru).ExitCode
#Cleanup Local Memory
Remove-Variable -Name GUID -Scope Local -Force
Remove-Variable -Name Arguments -Scope Local -Force
}
Function AutodeskNavisworksSimulate20132013DWGFileReader{
#Declare Local Memory
Set-Variable -Name GUID -Value "{CBED6FC7-FB20-4920-AA80-3D6F3459F902}" -Scope Local -Force
Set-Variable -Name Arguments -Scope Local -Force
Write-Host "Autodesk Navisworks Simulate 2013 - 2013 DWG File Reader"
$Arguments = "/X"+[char]32+$GUID+[char]32+"/qb- /norestart"
(Start-Process -FilePath "msiexec.exe" -ArgumentList $Arguments -Wait -Passthru).ExitCode
#Cleanup Local Memory
Remove-Variable -Name GUID -Scope Local -Force
Remove-Variable -Name Arguments -Scope Local -Force
}
Function AutodeskNavisworksSimulate2013EnglishLanguagePack{
#Declare Local Memory
Set-Variable -Name GUID -Value "{F17E30E2-7ED4-0409-8A8E-CAB597E3F8ED}" -Scope Local -Force
Set-Variable -Name Arguments -Scope Local -Force
Write-Host "Autodesk Navisworks Simulate 2013 English Language Pack"
$Arguments = "/X"+[char]32+$GUID+[char]32+"/qb- /norestart"
(Start-Process -FilePath "msiexec.exe" -ArgumentList $Arguments -Wait -Passthru).ExitCode
#Cleanup Local Memory
Remove-Variable -Name GUID -Scope Local -Force
Remove-Variable -Name Arguments -Scope Local -Force
}
Function AutodeskSimulationCFD2013{
#Declare Local Memory
Set-Variable -Name GUID -Value "{1C11BFF1-1FA3-4AA9-AA15-9AA2BB921F9E}" -Scope Local -Force
Set-Variable -Name Arguments -Scope Local -Force
Write-Host "Autodesk Simulation CFD 2013"
$Arguments = "/X"+[char]32+$GUID+[char]32+"/qb- /norestart"
(Start-Process -FilePath "msiexec.exe" -ArgumentList $Arguments -Wait -Passthru).ExitCode
#Cleanup Local Memory
Remove-Variable -Name GUID -Scope Local -Force
Remove-Variable -Name Arguments -Scope Local -Force
}
#Covers all apps the ADSUninstallTool.exe uninstalls
AutoCAD2013English
AutodeskRevitInteroperabilityfor3dsMaxand3dsMaxDesign201364-bit
AutodeskShowcase201364-bit
AutodeskDirectConnect201364-bit
AutodeskSketchBookDesigner2013
AutodeskDesignReview201332-bit
AutodeskInventorFusion2013
AutodeskMaterialLibrary201332-bit
AutodeskMaterialLibraryBaseResolutionImageLibrary2013
AutodeskMaterialLibraryLowResolutionImageLibrary2013
AutodeskMaterialLibraryMediumResolutionImageLibrary2013
AutodeskContentService
AutodeskSync
#Uninstalls the ADSUninstallTool.exe does not uninstall
AutodeskRevit2013
AutoCADArchitecture2013
AutodeskNavisworksSimulate2013
AutodeskWorkflowsBuildingDesignSuite2013
AutodeskNavisworksSimulate20132008DWGFileReader
AutodeskNavisworksSimulate20132009DWGFileReader
AutodeskNavisworksSimulate20132010DWGFileReader
AutodeskNavisworksSimulate20132011DWGFileReader
Revit2013LanguagePackEnglish
AutodeskNavisworksSimulate20132012DWGFileReader
AutodeskNavisworksSimulate20132013DWGFileReader
AutodeskNavisworksSimulate2013EnglishLanguagePack
AutodeskSimulationCFD2013