install-pcvisit-remotehost.bat aktualisiert

This commit is contained in:
2026-03-09 14:34:36 +01:00
parent c6c05a0fc6
commit 22784a1515

View File

@@ -1,15 +1,15 @@
@echo off @echo off
setlocal setlocal
:: URL der Datei :: Der Permalink, der immer auf die aktuellste Version zeigt
#set URL="https://d1kh5e79chg49w.cloudfront.net/1df94a62cfadb6a8a500f50293433e9d/pcvisit_Remote-Host_Setup.exe"
set URL="https://lb3.pcvisit.de/v1/hosted/jumplink?func=download&topic=remoteHostSetup&destname=pcvisit_Remote-Host_Setup&os=osWin32" set URL="https://lb3.pcvisit.de/v1/hosted/jumplink?func=download&topic=remoteHostSetup&destname=pcvisit_Remote-Host_Setup&os=osWin32"
:: Zielpfad für die heruntergeladene Datei :: Zielpfad im Temp-Ordner
set SETUPFILE="%TEMP%\pcvisit_Remote-Host_Setup.exe" set SETUPFILE="%TEMP%\pcvisit_Remote-Host_Setup.exe"
:: Datei herunterladen :: Download mit Invoke-WebRequest (folgt Redirects automatisch)
powershell -Command "Start-BitsTransfer -Source %URL% -Destination %SETUPFILE%" echo Lade aktuelle Version herunter...
powershell -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri %URL% -OutFile %SETUPFILE%"
:: Prüfen, ob der Download erfolgreich war :: Prüfen, ob der Download erfolgreich war
if not exist %SETUPFILE% ( if not exist %SETUPFILE% (
@@ -18,9 +18,10 @@ if not exist %SETUPFILE% (
) )
:: Installation starten :: Installation starten
echo Starte Installation...
%SETUPFILE% /S /CompanyAccountId=F6684590965 /UseCompanyPreset %SETUPFILE% /S /CompanyAccountId=F6684590965 /UseCompanyPreset
:: Aufräumen (optional) :: Aufräumen
del %SETUPFILE% del %SETUPFILE%
endlocal endlocal