Once you’ve created an instance, you can update the driver on it using
pnputil.exe /add-driver yournewdriver.inf /install
The /add-driver will add it to the driver store, and /install will apply the
new driver to all the instance IDs that it matches.
From: wdmaudiodev-bounce@xxxxxxxxxxxxx <wdmaudiodev-bounce@xxxxxxxxxxxxx> on
behalf of Tim Roberts <timr@xxxxxxxxx>
Sent: Tuesday, August 14, 2018 12:10:48 PM
Subject: [wdmaudiodev] Re: set the default audio format dynamically
during/after driver installation
Johannes Freyberger wrote:
It’s a pure virtual driver without real hardware. Would there be a different
answer depending from this? A different way to set the format for virtual or
real hardware drivers?
Absolutely. The command "devcon install" sounds very inviting, but it doesn't
always do what you think. It pre-installs the driver package, and then it
creates a new fake devnode with the hardware ID you give it. It then starts
the PnP process to find a driver for the devnode it created, just as if you had
plugged in a brand new device.
It always creates a new devnode, even if one already exists. It's very easy to
end up with duplicates. If you change your INF, you must be careful to remove
the old fake devices.
Tim Roberts, timr@xxxxxxxxx<mailto:timr@xxxxxxxxx>
Providenza & Boekelheide, Inc.