@cd /d %~dp0

@net stop "HASP Loader" >nul 2>nul
@sc delete "HASP Loader" >nul 2>nul
@TIMEOUT /T 1 /NOBREAK

@devcon remove root\MultiKey
@TIMEOUT /T 1 /NOBREAK

@if exist %systemroot%\system32\drivers\MultiKey.sys del %systemroot%\system32\drivers\MultiKey.sys >nul 2>nul
@TIMEOUT /T 1 /NOBREAK

@devcon remove root\MulttKey
@TIMEOUT /T 1 /NOBREAK

@if exist %systemroot%\system32\drivers\MulttKey.sys del %systemroot%\system32\drivers\MulttKey.sys >nul 2>nul
@TIMEOUT /T 1 /NOBREAK

@devcon remove root\mcamvusb7
@TIMEOUT /T 1 /NOBREAK

@if exist %systemroot%\system32\drivers\mcamvusb7.sys del %systemroot%\system32\drivers\mcamvusb7.sys >nul 2>nul
@TIMEOUT /T 1 /NOBREAK

@REG DELETE HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\MulttKey /f >nul 2>nul
@REG DELETE HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SystemCertificates\ROOT\Certificates\E403A1DFC8F377E0F4AA43A83EE9EA079A1F55F2 /f >nul 2>nul

@bcdedit.exe -set TESTSIGNING OFF
@TIMEOUT /T 1 /NOBREAK

@pause
