@echo off
setlocal enableextensions
title JG Music Tools - Uninstall

echo.
echo ============================================
echo   JG Music Tools - Uninstaller
echo ============================================
echo.
echo This will remove:
echo   - %LOCALAPPDATA%\JG Music Tools\ (the app)
echo   - Start Menu shortcut
echo   - Desktop shortcut
echo   - Add/Remove Programs entry
echo.
echo Your sheets, settings, and login (%%APPDATA%%\jg-music-tools\) will be kept
echo unless you delete that folder manually.
echo.
echo Press any key to uninstall, or close this window to cancel.
pause >nul

set "DEST=%LOCALAPPDATA%\JG Music Tools"

echo Removing shortcuts...
del "%APPDATA%\Microsoft\Windows\Start Menu\Programs\JG Music Tools.lnk" 2>nul
del "%USERPROFILE%\Desktop\JG Music Tools.lnk" 2>nul

echo Removing Add/Remove Programs entry...
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\JGMusicTools" /f >nul 2>&1

echo Removing app folder...
cd /d %TEMP%
if exist "%DEST%" rmdir /s /q "%DEST%"

echo.
echo ============================================
echo   Uninstall complete.
echo ============================================
echo.
echo To also remove your sheets/settings/login, delete:
echo   %APPDATA%\jg-music-tools\
echo.
pause
exit /b 0
