diff --git a/miragte.bat b/miragte.bat index 07eb88b..41991a1 100644 --- a/miragte.bat +++ b/miragte.bat @@ -1,26 +1,7 @@ @echo off -echo Deaktiviere und loesche pcvisit / caloa Dienste... -:: Sucht nun nach pcvisit UND caloa Diensten, stoppt und loescht sie -powershell -Command "Get-Service -Name '*pcvisit*', '*caloa*' -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 Prozesse... -powershell -Command "Get-Process -Name '*pcvisit*', '*caloa*' -ErrorAction SilentlyContinue | Stop-Process -Force" >nul 2>&1 - -echo Fuehre pcvisit Uninstaller aus... -for /f "delims=" %%I in ('dir /b /s "%ProgramFiles(x86)%\pcvisit Software AG\*uninstall*.exe" 2^>nul') do ( - "%%I" /S >nul 2>&1 -) -for /f "delims=" %%I in ('dir /b /s "%ProgramFiles%\pcvisit Software AG\*uninstall*.exe" 2^>nul') do ( - "%%I" /S >nul 2>&1 -) - -:: 10 Sekunden warten -ping 127.0.0.1 -n 11 >nul - -echo Raeume pcvisit Datei-Reste auf... -rmdir /S /Q "%ProgramFiles(x86)%\pcvisit Software AG" >nul 2>&1 -rmdir /S /Q "%ProgramFiles%\pcvisit Software AG" >nul 2>&1 +echo Erstelle TMP-Ordner... +if not exist "C:\TMP" mkdir "C:\TMP" >nul 2>&1 echo Lade RustDesk herunter... powershell -Command "$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest -Uri 'https://me-files.vmd55888.de/me-rustdesk-host.exe' -OutFile 'C:\TMP\rustdesk_installer.exe' -UseBasicParsing" @@ -46,4 +27,41 @@ echo Entferne Desktop-Verknuepfung... del "C:\Users\Public\Desktop\ME-RustDesk-Host.lnk" /Q /F >nul 2>&1 -echo Fertig! \ No newline at end of file +echo. +echo ======================================================== +echo RUSTDESK IST INSTALLIERT UND LAEUFT! +echo. +echo Bitte wechsle jetzt in deinen RustDesk-Client und +echo baue die Verbindung zu diesem Rechner auf. +echo. +echo Wenn die RustDesk-Verbindung steht, druecke hier +echo eine beliebige Taste, um pcvisit zu deinstallieren. +echo ======================================================== +pause +echo. + + +echo Deaktiviere und loesche pcvisit / caloa Dienste... +:: Sucht nun nach pcvisit UND caloa Diensten, stoppt und loescht sie +powershell -Command "Get-Service -Name '*pcvisit*', '*caloa*' -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 Prozesse... +powershell -Command "Get-Process -Name '*pcvisit*', '*caloa*' -ErrorAction SilentlyContinue | Stop-Process -Force" >nul 2>&1 + +echo Fuehre pcvisit Uninstaller aus... +for /f "delims=" %%I in ('dir /b /s "%ProgramFiles(x86)%\pcvisit Software AG\*uninstall*.exe" 2^>nul') do ( + "%%I" /S >nul 2>&1 +) +for /f "delims=" %%I in ('dir /b /s "%ProgramFiles%\pcvisit Software AG\*uninstall*.exe" 2^>nul') do ( + "%%I" /S >nul 2>&1 +) + +:: 10 Sekunden warten +ping 127.0.0.1 -n 11 >nul + +echo Raeume pcvisit Datei-Reste auf... +rmdir /S /Q "%ProgramFiles(x86)%\pcvisit Software AG" >nul 2>&1 +rmdir /S /Q "%ProgramFiles%\pcvisit Software AG" >nul 2>&1 + + +echo Fertig! Migration komplett abgeschlossen. \ No newline at end of file