@echo off
chcp 65001 >nul
title Desinstalador IPMonitor v3.1
color 0C

echo ==========================================
echo    IPMonitor v3.1 - Desinstalador
echo ==========================================
echo.

echo Deteniendo IPMonitor...
taskkill /F /IM IPMonitor.exe >nul 2>&1

echo Eliminando archivos...
set "INSTALL_DIR=%LOCALAPPDATA%\IPMonitor"
set "DESKTOP=%USERPROFILE%\Desktop"
set "STARTMENU=%APPDATA%\Microsoft\Windows\Start Menu\Programs"

if exist "%INSTALL_DIR%" (
    rmdir /S /Q "%INSTALL_DIR%"
    echo Directorio eliminado: %INSTALL_DIR%
)

del "%DESKTOP%\IPMonitor.lnk" >nul 2>&1
if exist "%STARTMENU%\IPMonitor" rmdir /S /Q "%STARTMENU%\IPMonitor"

echo.
echo ==========================================
echo    Desinstalacion completada!
echo ==========================================
echo.
pause
