简体   繁体   中英

Installing Serial Port Driver on Windows

I've been trying to install a Plug and Play Device Driver for a USB Serial Port, specifically the FTDI Device Drivers. I'm trying to install the driver programatically without having to request input from the user. I've tried copying the INF file for the driver into

C:\WINDOWS\inf

and copying the SYS files for the driver into

C:\WINDOWS\system32\drivers

but when I plug in the device the device manager still pops up looking for the sys files.

So far I haven't been able to find a tutorial on how to perform this kind of installation.

Based on the error message I'm getting from the device manager I assume it still can't find the SYS file, despite me placing them in the drivers directory.

设备管理器找不到SYS文件

You can't just drop the .inf file in the c:\\windows\\inf directory. It needs to be pre-compiled to a .pnf file and (probably) some kind of plug-and-play catalog needs to be updated. Which is done by calling SetupCopyOEMInf() .

Decent step-by-step instructions are available here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM