Files
install-pcvisit-remotehost/install-pcvisit-remotehost.bat

22 lines
696 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_Remote-Host_Setup.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