how to install driver?

I have .inf and .sys files,and when i install my driver?but can not find WdfcoInstaller01009.dll,then i download it from internet,and install success,but when my app program use SetupDiGetDeviceInterfaceDetail enum device,find it return false,and I can not find the device GUID in registry and only find the install GUID.

Just out of curiosity, where did you find the coinstaller on the internet?

It is available as part of the WDK, under the ‘redist’ directory. You
should only use the one from that directory, of the same WDK that you used
to build the driver.

Let’s see if that helps first.

Good luck,

mm

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of zhonghong200@163.com
Sent: Monday, August 16, 2010 10:43 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] how to install driver?

I have .inf and .sys files,and when i install my driver?but can not find
WdfcoInstaller01009.dll,then i download it from internet,and install
success,but when my app program use SetupDiGetDeviceInterfaceDetail enum
device,find it return false,and I can not find the device GUID in registry
and only find the install GUID.


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

Refer to the Enum key and Class key in register to locate your driver. And the most directly way is look for it in Devic Manager.
Only if your driver has registered the device interface, you can enum them using SetupAPI. Use SetupDiGetClassDevs/SetupDiEnumDeviceInterfaces and set flag code as DIGCF_ALLCLASSES, you will enum both devices and device interfaces.

> I have .inf and .sys files,and when i install my driver?but can not find WdfcoInstaller01009.dll,then i download it from internet,and install success,but when my app program use SetupDiGetDeviceInterfaceDetail enum device,find it return false,and I can not find the device GUID in registry and only find the install GUID.


NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

thank you for you answer,but in my ‘redist’ directory,I can not find the file WdfcoInstaller01007.dll, and instead ,my file is WdfcoInstaller01009.dll. but when i install the driver,it say can not find the wdfcoinstaller01007.

who can tell me why?

i find the answer, because in the file of .inf, the copy file is WdfcoInstaller01007.dll

at this time ,i install the driver ,but the appliction use SetupDiGetDeviceInterfaceDetail enum device,find it return false,and I can not find the device GUID in registry and only find the
install GUID.

and in the device manager,can see the device.

who can tell me why?

thank you

If you are building the driver with the Win7 WDK you are building against
version 01009 of the WDf coinstaller. You will have to install 01009 as
well.

Gary G. Little
H (952) 223-1349
C (952) 454-4629
xxxxx@comcast.net

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of zhonghong200@163.com
Sent: Tuesday, August 17, 2010 5:30 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] how to install driver?

i find the answer, because in the file of .inf, the copy file is
WdfcoInstaller01007.dll

at this time ,i install the driver ,but the appliction use
SetupDiGetDeviceInterfaceDetail enum device,find it return false,and I can
not find the device GUID in registry and only find the install GUID.

and in the device manager,can see the device.

who can tell me why?

thank you


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

  • Did you see a problem code for the device in device manager?
  • Also, you can check the setupapi.dev.log to see if there were any errors
    during installation.

wrote in message news:xxxxx@ntdev…
> i find the answer, because in the file of .inf, the copy file is
> WdfcoInstaller01007.dll
>
> at this time ,i install the driver ,but the appliction use
> SetupDiGetDeviceInterfaceDetail enum device,find it return false,and I can
> not find the device GUID in registry and only find the
> install GUID.
>
> and in the device manager,can see the device.
>
> who can tell me why?
>
> thank you
>
>

Gary Little ,you are right ,i resolve the problem.

thank you every body.

Hey thanks! I keep telling these folks I’m not ALWAYS wrong!!!

Gary G. Little
H (952) 223-1349
C (952) 454-4629
xxxxx@comcast.net

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of zhonghong200@163.com
Sent: Tuesday, August 17, 2010 8:07 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] how to install driver?

Gary Little ,you are right ,i resolve the problem.

thank you every body.


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer