@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