@echo off
setlocal

:: =====================================================================
::  Astrology Screensaver — Uninstaller
:: =====================================================================

net session >nul 2>&1
if %errorLevel% neq 0 (
    echo This uninstaller needs administrator permission.
    echo Requesting elevation...
    powershell -Command "Start-Process '%~f0' -Verb RunAs"
    exit /b
)

echo.
echo =========================================
echo   Astrology Screensaver - Uninstaller
echo =========================================
echo.

echo Removing screensaver files from Windows\System32 ...
del /Q "%WINDIR%\System32\AstrologyScreensaver.scr" 2>nul
rmdir /S /Q "%WINDIR%\System32\Settings" 2>nul

echo.
echo Done. If the screensaver was active, Windows will revert
echo to "None" the next time the screen saver settings are checked.
echo.
pause
