@echo off
echo ====================================
echo   喵喵小兵 Windows 安装
echo ====================================
set DST=C:\Program Files\miaomiao
mkdir "%DST%" 2>nul
copy /Y "miaomiao-desktop-win.exe" "%DST%\" >nul

:: 注册为 Windows Service
sc create miaomiao-desktop binPath= "\"%DST%\miaomiao-desktop-win.exe\"" start= auto DisplayName= "喵喵小兵桌面守护" 2>nul
sc start miaomiao-desktop 2>nul

echo 安装完成！守护进程已注册为 Windows Service
echo 日志: %USERPROFILE%\.miaomiao\logs\
pause
