@echo off
cd /d "%~dp0"
net session >nul 2>&1
if errorlevel 1 (
 powershell -NoProfile -Command "Start-Process '%~f0' -Verb RunAs"
 exit /b
)
"PDFindexer-Pro.exe" --service stop
timeout /t 2 /nobreak >nul
"PDFindexer-Pro.exe" --service remove
pause
