22 lines
579 B
PowerShell
22 lines
579 B
PowerShell
param(
|
|
[string]$ObsPath = "C:\Program Files\obs-studio"
|
|
)
|
|
|
|
$ErrorActionPreference = "Stop"
|
|
|
|
if (Get-Process obs64 -ErrorAction SilentlyContinue) {
|
|
throw "OBS is running. Please close OBS before uninstalling the plugin."
|
|
}
|
|
|
|
$dllPath = Join-Path $ObsPath "obs-plugins\64bit\audio-waveform-dock.dll"
|
|
$dataPath = Join-Path $ObsPath "data\obs-plugins\audio-waveform-dock"
|
|
|
|
foreach ($path in @($dllPath, $dataPath)) {
|
|
if (Test-Path $path) {
|
|
Remove-Item $path -Recurse -Force
|
|
Write-Host "Removed $path"
|
|
}
|
|
}
|
|
|
|
Write-Host "Uninstalled audio-waveform-dock."
|