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