Skip to content
⌘ NSIS Forum Archive

how to detect device in PCI slot?

3 posts

jai123#

how to detect device in PCI slot?

Hello,

I am creating a driver installer, but before installing the driver I want to assure that the device is inserted in the PCI slot. Do you know how can this be done?

Thanks,
Afrow UK#
It's been a while since I worked with devices but the two options you have that I am aware of. One is to query via WMI via wmic.exe (or write an executable/DLL that queries WMI and call that). Your other option is to use the methods in setupapi.dll which I have used in the past to detect USB mass storage devices. Both options I think are only available on 2000 and above.

Stu