@echo off
rem Journal Tools installer for AVPrep2. Downloads jt-install.ps1 from jeffapierson.com and runs it. Deletes nothing.
setlocal
set "JT=%TEMP%\jt-install"
if not exist "%JT%" mkdir "%JT%"
powershell -NoProfile -ExecutionPolicy Bypass -Command "[Net.ServicePointManager]::SecurityProtocol=[Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -UseBasicParsing https://jeffapierson.com/downloads/jt-install.ps1.txt -OutFile '%JT%\jt-install.ps1'"
if errorlevel 1 (echo Could not download the installer. Check your internet connection. & pause & exit /b 1)
powershell -NoProfile -ExecutionPolicy Bypass -File "%JT%\jt-install.ps1" -App avprep2 %*
pause
