Files
fogsnippets/64_ReluxDesktop/install_reluxdesktop.cmd
Stefan Tollkühn ec74d4a2c1 Initial commit
2025-09-18 14:02:17 +02:00

17 lines
595 B
Batchfile

@echo off
set DOWNLOADFILE="%TEMP%\ReluxDesktop_%RELUXVERSION%.exe"
set RELUXVERSION=%1
set SRCDIR=%~dp0
:: download relux
"%SYSTEMROOT%\System32\bitsadmin.exe" /transfer /download https://reluxnet.relux.com/download/reluxdesktop/%RELUXVERSION%/ReluxDesktop_%RELUXVERSION%.exe %DOWNLOADFILE% >nul
:: install relux
"%DOWNLOADFILE%" /quiet /norestart
::configure codemeter
"%SYSTEMROOT%\System32\sc.exe" stop CodeMeter.exe
copy "%SRCDIR:~0,-1%\settings\CodeMeter.ini" "%ProgramFiles(x86)%\CodeMeter\Runtime\bin\CodeMeter.ini"
"%SYSTEMROOT%\System32\sc.exe" start CodeMeter.exe