++:: ==== =========================== ====

:: FingerPrint Script V1.0

:: =====================================

pushd "%~dp0"

DeviceCheck.exe /All /HWID /D /S:"USB\VID_27C6&PID_581A"

if %errorlevel%==0 goto :GOODIX_Install

DeviceCheck.exe /All /HWID /D /S:"USB\VID_10A5&PID_9200"

if %errorlevel%==0 goto :FPC_Install

goto :install_fail

:GOODIX_Install

pushd Goodix_V3.0.81.230

pnputil -i -a *.inf

popd

goto :install_pass

:FPC_Install

Pushd OFilm_FP_11.26.1.40

cd "%~dp0fw_inf"

pnputil -i -a *.inf

cd ..

pnputil -i -a *.inf

popd

goto :install_pass

:install_fail

SET Driver_LOG=C:\Windows\Logs\Fingerprint.log

IF NOT EXIST C:\Windows\Logs\ MD C:\Windows\Logs\

ECHO [%TIME%] == The Installation of Fingerprint is fail >> %Driver_LOG%

goto :end

:install_pass

SET Driver_LOG=C:\Windows\Logs\Fingerprint.log

IF NOT EXIST C:\Windows\Logs\ MD C:\Windows\Logs\

ECHO [%TIME%] == The Installation of Fingerprint is successful >> %Driver_LOG%

:end

exit

Hi, I'm Elise, and I'd be happy to help with your issue.
For technical queries such as this involving batch scripts, please direct your query to the TechNet forums:
https://social.technet.microsoft.com/Forums/en-...
Kind Regards,
Elise