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


Before Posting...

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

More Info on Driver Writing and Debugging

The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.

Check out The OSR Learning Library at:

Driver Updates: Replacing vs Creating New oem.inf

Nathan_KiddNathan_Kidd Member - All Emails Posts: 22

When I call newdev.dll:UpdateDriverForPlugAndPlayDevices() in a clean system my driver is installed and oem2.inf is created.
When I call the function again with a newer signed driver package (including newer DriverVersion in the inf) I get oem3.inf created. I was expecting oem2.inf to be replaced. If I used devcon update it behaves the same way, creating an additional oem.inf file.

Littering the system with old oem.inf files seems wrong. It appears I must manually check for these and setupapi.dll:SetupUninstallOEMInf() them.

  • Is a new oem.inf expected after update?
  • Is it best practice to remove older inf files?
  • Am I doing something wrong?

My net searches have come up empty. Thanks for your input.



  • Doron_HolanDoron_Holan Member - All Emails Posts: 10,711
    1. yes. each new imported driver package has its own identity, it's own oemX.inf
    2. on a test system yes. on a customer system, it depends on what you want available to the customer to roll back to
    3. you are doing everything fine
  • Nathan_KiddNathan_Kidd Member - All Emails Posts: 22

    Appreciate that Doron.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. Sign in or register to get started.

Upcoming OSR Seminars
OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead!
Writing WDF Drivers 12 September 2022 Live, Online
Internals & Software Drivers 23 October 2022 Live, Online
Kernel Debugging 14 November 2022 Live, Online
Developing Minifilters 5 December 2022 Live, Online