@echo off
REM Fix a stuck LibraryAbout: the LocalSystem vault service holds the app exe, so
REM Task Manager can't end it. This stops+removes the service (releasing the exe)
REM and kills the app. Run as ADMINISTRATOR (right-click -> Run as administrator).
title LibraryAbout - fix stuck process
echo Stopping the vault service (releases the locked app)...
net stop LibraryAboutVaultService 2>nul
sc stop LibraryAboutVaultService >nul 2>&1
timeout /t 2 /nobreak >nul
echo Removing the vault service so it stops respawning the app...
sc delete LibraryAboutVaultService >nul 2>&1
timeout /t 1 /nobreak >nul
echo Closing any leftover app process...
taskkill /F /T /IM "Library About.exe" >nul 2>&1
taskkill /F /T /IM "LibraryAbout.exe" >nul 2>&1
echo.
echo Done. The stuck process is gone.
echo Now install the latest from:
echo   https://pvfassets.fra1.cdn.digitaloceanspaces.com/library_about_desktop_client/LibraryAbout-Setup.exe
echo (the installer re-creates the service correctly).
echo.
pause
