@echo off setlocal EnableExtensions title JaydLive for PowerPoint - Remove echo. echo ========================================================== echo JaydLive for PowerPoint - Remove echo ========================================================== echo. echo This removes JaydLive from PowerPoint on this PC. echo It deletes the JaydLive folder in your account and the echo PowerPoint settings that pointed at it. echo Your presentations are NOT touched. echo. echo If PowerPoint is open, close it completely first - echo otherwise it may keep showing its cached copy. echo. pause rem Same guard as setup: while PowerPoint runs it holds the rem add-in cache, so the deletes below can silently fail. tasklist /FI "IMAGENAME eq POWERPNT.EXE" 2>nul | find /I "POWERPNT.EXE" >nul if not errorlevel 1 goto JlPptOpen set "JL_CATALOG={A1B2C3D4-E5F6-47A8-9B0C-D1E2F3040506}" set "JL_ADDIN=6ee9206e-c571-47ae-8c4d-9b61115d40b2" echo Removing the PowerPoint settings... reg delete "HKCU\Software\Microsoft\Office\16.0\WEF\TrustedCatalogs\%JL_CATALOG%" /f >nul 2>&1 reg delete "HKCU\Software\Microsoft\Office\16.0\WEF\Developer" /v "%JL_ADDIN%" /f >nul 2>&1 reg delete "HKCU\Software\Microsoft\Office\16.0\WEF\Developer\%JL_ADDIN%" /f >nul 2>&1 echo Removing the JaydLive folder... if exist "%LOCALAPPDATA%\JaydLive" rmdir /s /q "%LOCALAPPDATA%\JaydLive" echo Clearing PowerPoint's add-in cache... if exist "%LOCALAPPDATA%\Microsoft\Office\16.0\Wef" rmdir /s /q "%LOCALAPPDATA%\Microsoft\Office\16.0\Wef" rem Verify the deletes actually happened - if a folder is rem still there, say so instead of printing DONE. if exist "%LOCALAPPDATA%\JaydLive" goto JlStuck if exist "%LOCALAPPDATA%\Microsoft\Office\16.0\Wef" goto JlStuck echo. echo ========================================================== echo DONE - JaydLive has been removed from this PC. echo ========================================================== echo. echo Close PowerPoint completely and open it again to finish. echo. pause endlocal goto JlEnd :JlPptOpen echo. echo STOPPED: PowerPoint is still open (POWERPNT.EXE is echo running), and it holds the add-in cache this remover echo needs to delete. echo. echo Close PowerPoint completely. If it looks closed but this echo message keeps appearing, open Task Manager, find echo POWERPNT.EXE, and end it. Then run this remover again. echo. pause exit /b 1 :JlStuck echo. echo NOT FULLY REMOVED: Windows could not delete everything. echo That almost always means an Office app is still running echo and holding the files. Whatever is still on this PC: if exist "%LOCALAPPDATA%\JaydLive" echo %LOCALAPPDATA%\JaydLive if exist "%LOCALAPPDATA%\Microsoft\Office\16.0\Wef" echo %LOCALAPPDATA%\Microsoft\Office\16.0\Wef echo Close PowerPoint, Word and Excel completely (check Task echo Manager for POWERPNT.EXE), then run this remover again. echo. pause endlocal :JlEnd