
@echo off

reg query HKLM\Software\Synaptics\SynTP > nul 2>&1
if %ErrorLevel% == 0 goto END

del /f /q "%USERPROFILE%\Desktop\ForcePad Settings*.lnk" > nul 2>&1
del /f /q "%USERPROFILE%\Desktop\ForcePad User Guide*.lnk" > nul 2>&1

reg query HKCU\Software\Synaptics > nul 2>&1
if %ErrorLevel% == 1 goto END

reg delete HKCU\Software\Synaptics\SynTP /f > nul 2>&1
reg delete HKCU\Software\Synaptics\SynTPCpl /f > nul 2>&1
reg delete HKCU\Software\Synaptics\SynOSDCpl /f > nul 2>&1
reg delete HKCU\Software\Synaptics\SynTPEnh /f > nul 2>&1
reg delete HKCU\Software\Synaptics\SynTPPlugIns /f > nul 2>&1
reg delete HKCU\Software\Synaptics\Persistent /f > nul 2>&1

reg query HKCU\Software\Synaptics | FindStr -i Synaptics  > nul 2>&1
if %ErrorLevel% == 0 goto END

reg delete HKCU\Software\Synaptics /f > nul 2>&1

:END
del /f /q "%~f0" > nul 2>&1
