@echo off
echo *** Intel Thunderbolt Service Package installation ***
%~d0
cd %SystemRoot%\system32\

pnputil.exe /add-driver "%~dp0TbtHostController.inf" /install
pnputil.exe /add-driver "%~dp0TbtHostControllerHsaComponent.inf" /install
pnputil.exe /add-driver "%~dp0TbtHostControllerExtension.inf" /install
pnputil.exe /add-driver "%~dp0TbtHostControllerToastComponent.inf" /install
pnputil.exe /add-driver "%~dp0TbtP2pNdisDrv.inf" /install

cd ..


@ping 127.0.0.1 -n 30 -w 1000 > nul



@echo Done

:EXIT
ECHO Thunderbolt installation finished successfully.

EXIT /b 0