Skip to content

Commit

Permalink
Update install.bat (#44)
Browse files Browse the repository at this point in the history
Added check for pnputil for windows 10
  • Loading branch information
jsolarin authored Mar 5, 2024
1 parent 9b22e67 commit b5820ad
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion scripts/install.bat
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,17 @@ echo Installing UsbDk
start /wait msiexec /i "%ROOTDIR%\third_party\usbdk\UsbDk_*.msi" /quiet /qb! /norestart

echo Installing Windows drivers
pnputil /add-driver "%ROOTDIR%\third_party\coral_accelerator_windows\*.inf" /install
if exist %SystemRoot%\System32\pnputil.exe (
set "SystemPath=%SystemRoot%\System32"
) else if exist %SystemRoot%\Sysnative\pnputil.exe (
set "SystemPath=%SystemRoot%\Sysnative"
) else (
echo ERROR: Cannot find pnputil.exe to install the driver.
echo/
pause
goto :EOF
)
%SystemPath%\pnputil.exe /add-driver "%ROOTDIR%\third_party\coral_accelerator_windows\*.inf" /install

echo Installing performance counters
lodctr /M:"%ROOTDIR%\third_party\coral_accelerator_windows\coral.man"
Expand Down

0 comments on commit b5820ad

Please sign in to comment.