@echo off
REM Only change MODID and MODNAME, the rest is automatic.
SETLOCAL ENABLEDELAYEDEXPANSION
SET STEAMPATH=%TCAdminFolder%\Monitor\Tools\SteamCmd
SET LOGIN=xxxxxxx
SET PASSWORD=xxxxxx
SET MODID=1590841260
SET MODNAME=Trader.zip
SET MODFOLDER="C:\TCAFiles\Games\Dayzsat\TCA.Mods"
SET RAR="C:\Program Files (x86)\WinRAR"
echo ---------------------------------------------------
echo Installation of DayZ Mods started
echo ---------------------------------------------------
del /Q %MODFOLDER%\%MODNAME%
echo ---
echo %MODNAME%
echo ---
%STEAMPATH%\steamcmd +login %LOGIN% %PASSWORD% +force_install_dir %MODFOLDER% +"workshop_download_item 221100 %MODID%" +quit
%RAR%\winrar.exe a -afzip -ep1 -r %MODFOLDER%\%MODNAME% %MODFOLDER%\steamapps\workshop\content\221100\%MODID%\*.*
COPY %MODFOLDER%\steamapps\workshop\content\221100\%MODID%\Keys\*.bikey %ThisService_RootDirectory%\keys /Y
echo ---------------------------------------------------
echo Mod Installation completed
echo ---------------------------------------------------