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

22 lines
680 B
Batchfile

@echo off
setlocal
set "URL=https://lb3.pcvisit.de/v1/hosted/jumplink?func=download&topic=remoteHostSetup&destname=pcvisit_Remote-Host_Setup&os=osWin32"
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 /CompanyAccountId=F6684590965 /UseCompanyPreset
del "%SETUPFILE%"
endlocal