@echo off
setlocal
chcp 65001 >nul
title Codex Dream Skin Installer

powershell.exe -NoLogo -NoProfile -ExecutionPolicy Bypass -File "%~dp0_installer\install.ps1"
set "INSTALL_EXIT=%ERRORLEVEL%"

echo.
if "%INSTALL_EXIT%"=="0" (
  echo Installation finished. Desktop shortcuts are ready.
  echo 安装完成，桌面快捷方式已经创建。
) else (
  echo Installation did not finish. Read the message above, fix it, and run this file again.
  echo 安装未完成。请根据上方提示处理后，再次双击此文件。
)
echo.
pause
exit /b %INSTALL_EXIT%
