22 lines
740 B
Batchfile
22 lines
740 B
Batchfile
@echo off
|
|
setlocal
|
|
|
|
set "URL=https://stable-update.pcvisit.de/v1/hosted/jumplink?func=download&topic=remoteHostSetup&productrole=remoteHostSetup&gateway=stable-update.pcvisit.de&companyid=6684590965"
|
|
|
|
set "SETUPFILE=%TEMP%\pcvisit_RemoteHost_Setup.c.F6684590965...g.stable-update.pcvisit.de...exe"
|
|
|
|
echo Lade aktuelle Version herunter...
|
|
|
|
powershell -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest -Uri '%URL%' -OutFile '%SETUPFILE%'"
|
|
|
|
if not exist "%SETUPFILE%" (
|
|
echo Fehler: Die Datei konnte nicht heruntergeladen werden.
|
|
exit /b 1
|
|
)
|
|
|
|
echo Starte Installation...
|
|
"%SETUPFILE%" /S /UseCompanyPreset
|
|
|
|
del "%SETUPFILE%"
|
|
|
|
endlocal |