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

Home NTDEV

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: https://www.osr.com/osr-learning-library/


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.

-Nathan

Comments

  • Doron_HolanDoron_Holan Member - All Emails Posts: 10,706
    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
    d
  • 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!
Internals & Software Drivers 7 February 2022 Live, Online
Kernel Debugging 21 March 2022 Live, Online
Developing Minifilters 23 May 2022 Live, Online
Writing WDF Drivers 12 September 2022 Live, Online