@echo off setlocal EnableExtensions title JaydLive for PowerPoint - One-Click Setup echo. echo ========================================================== echo JaydLive for PowerPoint - Setup echo ========================================================== echo. echo This puts the JaydLive pane inside PowerPoint on this PC. echo It only changes YOUR Windows account - no admin needed. echo. echo If PowerPoint is open, close it now. echo. pause rem PowerPoint has to be fully closed for the setting saved in rem Step 3 and the cache clear in Step 4 to take. If it is still rem running, stop here instead of printing DONE over a setup rem that cannot work yet. tasklist /FI "IMAGENAME eq POWERPNT.EXE" 2>nul | find /I "POWERPNT.EXE" >nul if not errorlevel 1 goto JlPptOpen set "JL_DIR=%LOCALAPPDATA%\JaydLive" set "JL_MANIFEST=%JL_DIR%\manifest.xml" set "JL_URL=https://jaydlive.com/manifest.xml" set "JL_CATALOG={A1B2C3D4-E5F6-47A8-9B0C-D1E2F3040506}" set "JL_ADDIN=6ee9206e-c571-47ae-8c4d-9b61115d40b2" echo. echo Step 1 of 4: Creating the JaydLive folder... if not exist "%JL_DIR%" mkdir "%JL_DIR%" if exist "%JL_DIR%" goto JlStep2 echo. echo STOPPED at Step 1: Windows could not create this folder: echo %JL_DIR% echo Nothing else was changed. Run this file again, or use the echo manual steps at https://jaydlive.com/powerpoint-setup echo. pause exit /b 1 :JlStep2 echo Step 2 of 4: Downloading the JaydLive add-in file... if exist "%JL_MANIFEST%" del /q "%JL_MANIFEST%" curl.exe -fsSL -o "%JL_MANIFEST%" "%JL_URL%" if not errorlevel 1 if exist "%JL_MANIFEST%" goto JlVerify echo The quick download did not work - trying the backup way... powershell -NoProfile -ExecutionPolicy Bypass -Command "Invoke-WebRequest -Uri '%JL_URL%' -OutFile '%JL_MANIFEST%'" if exist "%JL_MANIFEST%" goto JlVerify echo. echo STOPPED at Step 2: the add-in file could not be downloaded. echo Check this PC is online, then run this file again. echo Or use the manual steps at https://jaydlive.com/powerpoint-setup echo. pause exit /b 1 :JlVerify rem Check the downloaded file before trusting it: it has to be the rem JaydLive add-in file (its Id line present), it has to carry a rem readable version, and it must NOT contain a VersionOverrides rem block - that ribbon block is what PowerPoint rejected in rem testing, so a download containing it is the wrong file. findstr /C:"%JL_ADDIN%" "%JL_MANIFEST%" >nul 2>&1 if errorlevel 1 goto JlBadDownload findstr /C:"VersionOverrides" "%JL_MANIFEST%" >nul 2>&1 if not errorlevel 1 goto JlBadDownload set "JL_VER=" for /f "tokens=3 delims=<>" %%V in ('findstr /C:"" "%JL_MANIFEST%"') do set "JL_VER=%%V" if not defined JL_VER goto JlBadDownload echo Downloaded JaydLive add-in version %JL_VER% - file checked OK. goto JlStep3 :JlBadDownload echo. echo STOPPED at Step 2: the downloaded file does not look like echo the current JaydLive add-in file, so setup will not use it. echo This can happen if the download was interrupted or an old echo copy was served. Check this PC is online, then download a echo fresh copy of this setup from echo https://jaydlive.com/powerpoint-install and run it again. echo. pause exit /b 1 :JlStep3 echo Step 3 of 4: Telling PowerPoint where JaydLive lives... rem Remove the catalog entry older setups wrote: its address was a rem plain folder path, which PowerPoint cannot load as a catalog and rem which made the Add-ins window fail with an error. Removing it is rem safe - the entry is only ever JaydLive's own. reg delete "HKCU\Software\Microsoft\Office\16.0\WEF\TrustedCatalogs\%JL_CATALOG%" /f >nul 2>&1 reg add "HKCU\Software\Microsoft\Office\16.0\WEF\Developer" /v "%JL_ADDIN%" /t REG_SZ /d "%JL_MANIFEST%" /f >nul if errorlevel 1 goto JlRegFail goto JlStep4 :JlStep4 echo Step 4 of 4: Clearing PowerPoint's add-in cache so it echo finds JaydLive fresh... if exist "%LOCALAPPDATA%\Microsoft\Office\16.0\Wef" rmdir /s /q "%LOCALAPPDATA%\Microsoft\Office\16.0\Wef" if exist "%LOCALAPPDATA%\Microsoft\Office\16.0\Wef" goto JlCacheStuck goto JlDone :JlRegFail echo. echo STOPPED at Step 3: Windows would not save the PowerPoint echo setting. The add-in file is downloaded and safe at: echo %JL_MANIFEST% echo Please use the manual steps at echo https://jaydlive.com/powerpoint-setup echo. pause exit /b 1 :JlPptOpen echo. echo STOPPED: PowerPoint is still open (POWERPNT.EXE is echo running). PowerPoint only picks up JaydLive when it starts echo fresh, and it locks the add-in cache while it runs, so echo setup cannot finish until it is closed. 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 setup again. echo. pause exit /b 1 :JlCacheStuck echo. echo STOPPED at Step 4: the PowerPoint setting was saved, but echo PowerPoint's add-in cache could not be cleared: echo %LOCALAPPDATA%\Microsoft\Office\16.0\Wef echo That almost always means an Office app is still running echo and holding the folder. Close PowerPoint, Word and Excel echo completely (check Task Manager for POWERPNT.EXE), then echo run this setup once more so the cache clears. echo. pause exit /b 1 :JlDone echo. echo ========================================================== echo DONE - JaydLive is set up on this PC. echo ========================================================== echo. echo Now finish in PowerPoint: echo 1. Close PowerPoint completely, then open it again. echo 2. Click Insert, then Add-ins, then My Add-ins. echo 3. Open the DEVELOPER ADD-INS section. echo 4. Click JaydLive for PowerPoint, then Add. echo. echo If JaydLive is not listed, PowerPoint was probably echo still open while setup ran - close it fully, run echo this setup once more, then reopen PowerPoint. echo. echo The JaydLive pane opens on the right. Type your event echo code in the pane (for the demo, type DEMO) and present. echo. pause endlocal