@echo off

echo "%DATE% %TIME% == Deleting the scheduled task for the upgrade" >> upgradeClient.log
schtasks /delete /f /tn "FileWave Client Upgrade" >> upgradeClient.log

REM Cleaning up in post-flight
echo "%DATE% %TIME% == Remove temp files" >> upgradeClient.log
del "c:\temp\FileWaveClient.msi" > NUL
del "c:\temp\scheduleRestart.bat" > NUL
del "c:\temp\upgradeClient.bat" > NUL
del "c:\temp\15_5_firewall.ps1" > NUL
del "c:\temp\FileWave Client Upgrade.xml" > NUL
del "c:\temp\*_loop.txt" > NUL

REM del %0 > NUL
