locked
Usb-device drivers reinstalling RRS feed

  • Question

  • Hello!

    Situation is quite simple at first sight, but if try to delve it, it's not so easy. But ok, I'll try to describe it: we have an usb-device (not a HID), and drivers for that device with .inf file(NICE!) without Default installation field inside. So the problem is: Rundll.exe throws an exception every time, when I try to run Setupapi by rundll.exe. OK, I tried to use driverpackageinstall and driverPackageuninstall from wdk and actually I got stuck in. Uninstalling shows result 0, but installing shows something like -54546475.

    Guys, who knows, how we can re-install drivers for usb device, please answer.

    Language is C#. 



    The only reason, why I want to re-install driver is, if you will not use device in 3 hours, after that device will not work properly at all. I don't know, who wrote drivers for that device, but it works in this way.
    Sunday, July 3, 2011 5:05 PM

Answers

  • Your should look into WMI.

    chanmm


    chanmm
    • Proposed as answer by Lie You Wednesday, July 13, 2011 3:21 AM
    • Marked as answer by Lie You Monday, July 18, 2011 1:02 AM
    Monday, July 4, 2011 6:54 AM

All replies

  • Your should look into WMI.

    chanmm


    chanmm
    • Proposed as answer by Lie You Wednesday, July 13, 2011 3:21 AM
    • Marked as answer by Lie You Monday, July 18, 2011 1:02 AM
    Monday, July 4, 2011 6:54 AM
  • Your should look into WMI.

    chanmm


    chanmm
    Thank you. I'll try it.
    Wednesday, July 6, 2011 6:04 PM