@echo off
chcp 65001 > nul
setlocal
set "APPDIR=%LOCALAPPDATA%\RisingShare\RMacroStudio"
mkdir "%APPDIR%" > nul 2> nul
copy /Y "%~dp0R Macro Studio.exe" "%APPDIR%\R Macro Studio.exe" > nul
copy /Y "%~dp0RMacroStudio_Licensed.exe" "%APPDIR%\RMacroStudio_Licensed.exe" > nul
copy /Y "%~dp0opencv_world470.dll" "%APPDIR%\opencv_world470.dll" > nul
copy /Y "%~dp0client_config.ini" "%APPDIR%\client_config.ini" > nul
powershell -NoProfile -ExecutionPolicy Bypass -Command "$desktop=[Environment]::GetFolderPath('Desktop');$dir=Join-Path $env:LOCALAPPDATA 'RisingShare\RMacroStudio';$s=(New-Object -ComObject WScript.Shell).CreateShortcut((Join-Path $desktop 'R Macro Studio.lnk'));$s.TargetPath=Join-Path $dir 'R Macro Studio.exe';$s.WorkingDirectory=$dir;$s.Save()"
echo 설치가 완료되었습니다.
echo 바탕화면의 R Macro Studio 바로가기를 실행하세요.
pause
