PUSHD .
@cd /D "%~dp0"

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

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

@echo [%date% %time%] START @EAP_UNINST@ /qn >> %logfile%
@@EAP_UNINST@ /qn >> %logfile% 2>&1
@if errorlevel 0 echo @EAP_UNINST@ /qn exited with errorlevel=%errorlevel% >> %logfile%
@echo [%date% %time%] END   @EAP_UNINST@ /qn >> %logfile%
@echo "=======================================" >> %logfile%

@echo [%date% %time%] START @LEAP_UNINST@ /qn >> %logfile%
@@LEAP_UNINST@ /qn >> %logfile% 2>&1
@if errorlevel 0 echo @LEAP_UNINST@ /qn exited with errorlevel=%errorlevel% >> %logfile%
@echo [%date% %time%] END   @LEAP_UNINST@ /qn >> %logfile%
@echo "=======================================" >> %logfile%

@echo [%date% %time%] START @PEAP_UNINST@ /qn >> %logfile%
@@PEAP_UNINST@ /qn >> %logfile% 2>&1
@if errorlevel 0 echo @PEAP_UNINST@ /qn exited with errorlevel=%errorlevel% >> %logfile%
@echo [%date% %time%] END   @PEAP_UNINST@ /qn >> %logfile%
@echo "=======================================" >> %logfile%

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

POPD