@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 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 JlStep3 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 JlStep3 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 :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" 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 :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