@echo off
chcp 65001 >nul
setlocal
cd /d "%~dp0"
title YarMenu Accounting - Desktop shortcut

echo.
echo Creating YarMenu Accounting desktop shortcut...
echo (Copies to %%LOCALAPPDATA%%\YarMenu\Accounting then creates shortcut)
echo.

powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0create_desktop_shortcut.ps1"
if errorlevel 1 (
    echo.
    echo [ERROR] Could not create shortcut.
    pause
    exit /b 1
)

echo.
echo Done. Use "YarMenu Accounting" on your desktop.
pause
exit /b 0
