Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Before Posting...
Please check out the Community Guidelines in the Announcements and Administration Category.

UMDF driver update requiring reboot

Alex_GrigAlex_Grig Member Posts: 3,238
I'm trying to fix a problem with a driver package. One of the drivers is using UMDF, along with a kernel component. They linked with the UMDF redirector driver WUDFRd.sys; our kernel component is a lower filter to WUDFRd.

The device can be disabled/removed without needing a reboot. But if you try to update the device drivers (either by Device Manager, or by DPinst.dll), it's unable to override the user mode DLLs which are loaded by the UMDF host process, and thus the file rename is scheduled, and reboot is required.

It appears, that the device update as implemented by Windows, doesn't disable the devnode before trying to copy the new files. For kernel mode drivers, there is no problem, but for UMDF driver DLLs it's not going to work.

Is it by design, or I may be doing something wrong?

Comments

  • Shyamal_VarmaShyamal_Varma Member - All Emails Posts: 9
    Could you please try adding the COPYFLG_IN_USE_RENAME flag to your INF? You should not see a reboot required prompt in the scenario you described, once you add that flag.

    e.g.
    [UMDriverCopy]
    MyUmdfDriver.dll,,,0x00004000 ; COPYFLG_IN_USE_RENAME

    The flag is documented here -
    http://msdn.microsoft.com/en-us/library/windows/hardware/ff546346(v=vs.85).aspx
  • Alex_GrigAlex_Grig Member Posts: 3,238
    Thank you. This seems to do the trick.

    I'd appreciate is the documentation for UMDF driver installation was updated to reflect this non-obvious solution, because the issue might be present for all UMDF drivers.

    While Microsoft may not care if a QFE or an SP requires reboot, the OEMs are usually unhappy about that. And if you run a chained MSI installation package, it explicitly precludes a reboot.
  • Shyamal_VarmaShyamal_Varma Member - All Emails Posts: 9
    That's fair feedback. We're already looking into addressing this.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Upcoming OSR Seminars
Writing WDF Drivers 25 Feb 2019 OSR Seminar Space
Developing Minifilters 8 April 2019 OSR Seminar Space