install-rustdesk.bat aktualisiert
This commit is contained in:
@@ -1,10 +1,13 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
echo Beende pcvisit Dienste und Prozesse...
|
echo Deaktiviere und loesche pcvisit Dienste...
|
||||||
powershell -Command "Stop-Service -Name '*pcvisit*' -Force -ErrorAction SilentlyContinue; Get-Process -Name '*pcvisit*' -ErrorAction SilentlyContinue | Stop-Process -Force" >nul 2>&1
|
:: Sucht alle pcvisit-Dienste, stoppt sie, deaktiviert sie und entfernt sie komplett aus Windows
|
||||||
|
powershell -Command "Get-Service -Name '*pcvisit*' -ErrorAction SilentlyContinue | ForEach-Object { Stop-Service -Name $_.Name -Force -ErrorAction SilentlyContinue; Set-Service -Name $_.Name -StartupType Disabled -ErrorAction SilentlyContinue; sc.exe delete $_.Name }" >nul 2>&1
|
||||||
|
|
||||||
|
echo Beende restliche pcvisit Prozesse...
|
||||||
|
powershell -Command "Get-Process -Name '*pcvisit*' -ErrorAction SilentlyContinue | Stop-Process -Force" >nul 2>&1
|
||||||
|
|
||||||
echo Fuehre pcvisit Uninstaller aus...
|
echo Fuehre pcvisit Uninstaller aus...
|
||||||
:: Sucht direkt im 32-Bit und 64-Bit Programme-Ordner nach dem Uninstaller und startet ihn silent
|
|
||||||
for /f "delims=" %%I in ('dir /b /s "%ProgramFiles(x86)%\pcvisit Software AG\*uninstall*.exe" 2^>nul') do (
|
for /f "delims=" %%I in ('dir /b /s "%ProgramFiles(x86)%\pcvisit Software AG\*uninstall*.exe" 2^>nul') do (
|
||||||
"%%I" /S >nul 2>&1
|
"%%I" /S >nul 2>&1
|
||||||
)
|
)
|
||||||
@@ -12,11 +15,10 @@ for /f "delims=" %%I in ('dir /b /s "%ProgramFiles%\pcvisit Software AG\*uninsta
|
|||||||
"%%I" /S >nul 2>&1
|
"%%I" /S >nul 2>&1
|
||||||
)
|
)
|
||||||
|
|
||||||
:: 10 Sekunden warten, damit der Uninstaller im Hintergrund fertig arbeiten kann
|
:: 10 Sekunden warten
|
||||||
ping 127.0.0.1 -n 11 >nul
|
ping 127.0.0.1 -n 11 >nul
|
||||||
|
|
||||||
echo Raeume pcvisit Datei-Reste auf...
|
echo Raeume pcvisit Datei-Reste auf...
|
||||||
:: Falls der Uninstaller hängen geblieben ist, löschen wir die Ordner hart weg
|
|
||||||
rmdir /S /Q "%ProgramFiles(x86)%\pcvisit Software AG" >nul 2>&1
|
rmdir /S /Q "%ProgramFiles(x86)%\pcvisit Software AG" >nul 2>&1
|
||||||
rmdir /S /Q "%ProgramFiles%\pcvisit Software AG" >nul 2>&1
|
rmdir /S /Q "%ProgramFiles%\pcvisit Software AG" >nul 2>&1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user