param([string]$InstallDir = "C:\printservice-app") Push-Location $InstallDir if (Test-Path ".\printservice.exe") { .\printservice.exe stop .\printservice.exe uninstall } else { Write-Host "printservice.exe nicht gefunden. WinSW-Datei pruefen." } Pop-Location