-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuninstall.ps1
More file actions
28 lines (22 loc) · 953 Bytes
/
Copy pathuninstall.ps1
File metadata and controls
28 lines (22 loc) · 953 Bytes
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
param()
$BundleId = "com.modelslab.mstudio.ae.sync"
$ErrorActionPreference = "Stop"
function Write-Info($msg) { Write-Host " [*] $msg" -ForegroundColor Cyan }
function Write-OK($msg) { Write-Host " [+] $msg" -ForegroundColor Green }
Write-Host ""
Write-Host "============================================================" -ForegroundColor White
Write-Host " MStudio AE Plugin - Uninstaller (Windows)" -ForegroundColor White
Write-Host "============================================================" -ForegroundColor White
Write-Host ""
$CepDir = Join-Path $env:APPDATA "Adobe\CEP\extensions\$BundleId"
if (-not (Test-Path $CepDir)) {
Write-Info "Plugin not found at $CepDir"
Write-Info "Already uninstalled or never installed."
Write-Host ""
exit 0
}
Remove-Item $CepDir -Recurse -Force
Write-OK "Removed $CepDir"
Write-Host ""
Write-Host " Plugin uninstalled. Restart After Effects to finalize." -ForegroundColor White
Write-Host ""