@echo off

set "source_dir=%~dp0"  REM Get the directory where the batch file is located

REM Copy "VST2 x64/MTS-ESP Master.dll" and "VST2 x64/MTS-ESP MIDI Client.dll" to "C:\Program Files\VSTPlugins"
xcopy "%source_dir%VST2 x64\MTS-ESP Master.dll" "C:\Program Files\VSTPlugins\" /Y
xcopy "%source_dir%VST2 x64\MTS-ESP MIDI Client.dll" "C:\Program Files\VSTPlugins\" /Y

REM Copy the folders "VST3 x64/MTS-ESP Master.vst3/" and "VST3 x64/MTS-ESP MIDI Client.vst3/" to "C:\Program Files\Common Files\VST3"
xcopy /E /Y "%source_dir%VST3 x64\MTS-ESP Master.vst3" "C:\Program Files\Common Files\VST3\MTS-ESP Master.vst3\"
xcopy /E /Y "%source_dir%VST3 x64\MTS-ESP MIDI Client.vst3" "C:\Program Files\Common Files\VST3\MTS-ESP MIDI Client.vst3\"

REM Copy "Max MIDI Effect/MTS-ESP MIDI Client.dll" to "%USERPROFILE%\Documents\Ableton\User Library\Presets\MIDI Effects\Max MIDI Effect"
mkdir "%USERPROFILE%\Documents\Ableton\User Library\Presets\MIDI Effects\Max MIDI Effect" 2>nul
xcopy "%source_dir%Max MIDI Effect\MTS-ESP MIDI Client.dll" "%USERPROFILE%\Documents\Ableton\User Library\Presets\MIDI Effects\Max MIDI Effect\" /Y

echo Batch file execution completed.
pause
