25 lines
643 B
Batchfile
25 lines
643 B
Batchfile
@echo off
|
|
setlocal
|
|
|
|
:: URL der Datei
|
|
set URL="https://d1kh5e79chg49w.cloudfront.net/0daf04e48301ace4518ab6818dc120a3/pcvisit_Remote-Host_Setup.exe"
|
|
|
|
:: Zielpfad für die heruntergeladene Datei
|
|
set SETUPFILE="%TEMP%\pcvisit_Remote-Host_Setup.exe"
|
|
|
|
:: Datei herunterladen
|
|
powershell -Command "Start-BitsTransfer -Source %URL% -Destination %SETUPFILE%"
|
|
|
|
:: Prüfen, ob der Download erfolgreich war
|
|
if not exist %SETUPFILE% (
|
|
echo Fehler: Die Datei konnte nicht heruntergeladen werden.
|
|
exit /b 1
|
|
)
|
|
|
|
:: Installation starten
|
|
%SETUPFILE% /S /CompanyAccountId=F6684590965 /UseCompanyPreset
|
|
|
|
:: Aufräumen (optional)
|
|
del %SETUPFILE%
|
|
|
|
endlocal |