PUSHD .
@cd /D "%~dp0"

@setlocal
@set logfile="%temp%\Install_EAP_Modules.log"

@echo "***************************************" >> %logfile%
@echo "[%date% %time%] STARTING EAP MODULE INSTALLATIONS" >> %logfile%

@set msiname=EAP-FAST.msi
@echo [%date% %time%] START msiexec /i %msiname% /qn >> %logfile%
@msiexec /i %msiname% /qn >> %logfile% 2>&1
@if errorlevel 0 echo msiexec %msiname% exited with errorlevel=%errorlevel% >> %logfile%
@echo [%date% %time%] END msiexec /i %msiname% /qn >> %logfile%
@echo "=======================================" >> %logfile%

@set msiname=EAP-LEAP.msi
@echo [%date% %time%] START msiexec /i %msiname% /qn >> %logfile%
@msiexec /i %msiname% /qn >> %logfile% 2>&1
@if errorlevel 0 echo msiexec %msiname% exited with errorlevel=%errorlevel% >> %logfile%
@echo [%date% %time%] END msiexec /i %msiname% /qn >> %logfile%
@echo "=======================================" >> %logfile%

@set msiname=EAP-PEAP.msi
@echo [%date% %time%] START msiexec /i %msiname% /qn >> %logfile%
@msiexec /i %msiname% /qn >> %logfile% 2>&1
@if errorlevel 0 echo msiexec %msiname% exited with errorlevel=%errorlevel% >> %logfile%
@echo [%date% %time%] END msiexec /i %msiname% /qn >> %logfile%
@echo "=======================================" >> %logfile%

@echo "" >> %logfile%
@echo "***************************************" >> %logfile%
@endlocal

POPD