10 lines
265 B
PowerShell
10 lines
265 B
PowerShell
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
|