@echo off :: 현재 날짜를 YYYYMMDD 형식으로 가져오기 for /f "tokens=2 delims= " %%a in ('date /t') do set DATE=%%a set LOG_DATE=%DATE:-=% :: 로그 파일 경로 설정 (배치 파일과 같은 디렉토리, 날짜 포함) set LOG_FILE=%~dp0install_%LOG_DATE%_log.txt echo Metaverse Server installation starting... %date% %time% echo Metaverse Server installation starting... %date% %time% >> %LOG_FILE% :: Microsoft Visual C++ Runtime 설치 및 로그 기록 echo Installing Microsoft Visual C++ 2015-2022 Redistributable... >> %LOG_FILE% echo Start Microsoft Visual C++ 2015-2022 Runtime installation: %time% echo Start Microsoft Visual C++ 2015-2022 Runtime installation: %time% >> %LOG_FILE% start /wait "" "%~dp0VC_redist.x64.exe" /quiet /install /norestart >> %LOG_FILE% 2>&1 echo End Microsoft Visual C++ 2015-2022 Runtime installation: %time% echo End Microsoft Visual C++ 2015-2022 Runtime installation: %time% >> %LOG_FILE% :: Microsoft .NET Runtime 설치 및 로그 기록 echo Installing Microsoft .NET Runtime... >> %LOG_FILE% echo Start Microsoft .NET 8.0 installation: %time% echo Start Microsoft .NET 8.0 installation: %time% >> %LOG_FILE% start /wait "" "%~dp0dotnet-runtime-8.0.8-win-x64.exe" /quiet /install /norestart >> %LOG_FILE% 2>&1 echo End Microsoft .NET 8.0 installation: %time% echo End Microsoft .NET 8.0 installation: %time% >> %LOG_FILE% :: Docker 설치 및 로그 기록 echo Installing Docker... >> %LOG_FILE% echo Start Docker installation: %time% echo Start Docker installation: %time% >> %LOG_FILE% start /wait "" "%~dp0Docker Desktop Installer.exe" install --quiet --accept-license --no-start >> %LOG_FILE% 2>&1 echo End Docker installation: %time% echo End Docker installation: %time% >> %LOG_FILE% :: ProudNET 설치 및 로그 기록 echo Installing ProudNET... >> %LOG_FILE% echo Start ProudNET installation: %time% echo Start ProudNET installation: %time% >> %LOG_FILE% start /wait "" "%~dp0ProudNetLibSetup-1.7.56164-master.exe" /silent >> %LOG_FILE% 2>&1 echo End ProudNET installation: %time% echo End ProudNET installation: %time% >> %LOG_FILE% :: ProudNET 라이선스 적용 시간 기록 echo Installing license... >> %LOG_FILE% echo Start license installation: %time% echo Start license installation: %time% >> %LOG_FILE% start /wait "" "%~dp0PNLicenseAuth.exe" "%~dp0PNLicenseKey.txt" >> %LOG_FILE% 2>&1 echo End license installation: %time% echo End license installation: %time% >> %LOG_FILE% :: 설치 완료 메시지 및 재부팅 echo Metaverse Server Installation completed. System will reboot in 300 seconds... %date% %time% echo Metaverse Server Installation completed. System will reboot in 300 seconds... %date% %time% >> %LOG_FILE% timeout /t 300 shutdown /r /t 0