Is it possible to install customized USB driver automatically?

We are designing a special USB storage device which need our own USB driver to work well. To simplify the usage, we want to store this driver the USB storage device.
When the USB device is plugged in, it will read the driver and load it automatically. This driver can be stored in some part like NOR flash in the device. When the driver is loaded, other parts of this device will work.

Is this possible to do so?

Not on any modern system. Automatic autoplay//autorun is not processed silently. If you have a custom driver, better to publish it to WU and match on the VID/PID HWID. This way you have the latest and greatest driver available to the user (the one you flash onto your device may be old and full of security bugs and it would be very hard to service if the driver only came with the device).

d

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@gmail.com xxxxx@lists.osr.com
Sent: Tuesday, September 5, 2017 8:42 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Is it possible to install customized USB driver automatically?

We are designing a special USB storage device which need our own USB driver to work well. To simplify the usage, we want to store this driver the USB storage device.
When the USB device is plugged in, it will read the driver and load it automatically. This driver can be stored in some part like NOR flash in the device. When the driver is loaded, other parts of this device will work.

Is this possible to do so?


NTDEV is sponsored by OSR

Visit the list online at: https:

MONTHLY seminars on crash dump analysis, WDF, Windows internals and software drivers!
Details at https:

To unsubscribe, visit the List Server section of OSR Online at https:</https:></https:></https:>

On Sep 5, 2017, at 8:42 PM, xxxxx@gmail.com xxxxx@lists.osr.com wrote:

We are designing a special USB storage device which need our own USB driver to work well. To simplify the usage, we want to store this driver the USB storage device.
When the USB device is plugged in, it will read the driver and load it automatically. This driver can be stored in some part like NOR flash in the device. When the driver is loaded, other parts of this device will work.

Is this possible to do so?

Take a moment to think about what you’re asking. That would be the perfect malware delivery device.

You can certainly add another interface your device that simulates a CD-ROM. The user will be given the opportunity to autorun your installer. However, the user is always going to be presented with that option, every time you get plugged in.

Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

The simulated CD-ROM is a good suggestion.
Can one physical USB device simulate two devices to the system?

Yes, that is what a composite usb device is for. What happens when you want to upgrade the driver that is not shipped with the device? How is the user going to get an update?

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@gmail.com xxxxx@lists.osr.com
Sent: Tuesday, September 5, 2017 10:13 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Is it possible to install customized USB driver automatically?

The simulated CD-ROM is a good suggestion.
Can one physical USB device simulate two devices to the system?


NTDEV is sponsored by OSR

Visit the list online at: https:

MONTHLY seminars on crash dump analysis, WDF, Windows internals and software drivers!
Details at https:

To unsubscribe, visit the List Server section of OSR Online at https:</https:></https:></https:>

Actually we also worry about this. We’re trying to convince customer not to do so.

This is an excellent point. Given that it’s 2017, it’s just as important to consider how you’re going to fix your driver in a timely manner as it is to determine how you’re going to get the driver to the user in the first place. It would be a major error to not seriously consider “servicing” in your plan.

Having said that, the two approaches (putting the driver on the device and servicing it via WU) are not mutually exclusive.

The initial OOBE could be to use the supplied driver on the device, AND the driver could be supplied via WU.

Unless your unique driver, once loaded, and instruct the device not to offer the CD Interface once the unique driver has been initially loaded. Yes, I agree this is probably “a bit too cute”…

Really, I think it’s best to not try to re-invent how drivers are distributed, and just use the mechanisms that are designed for this purpose. WU is a good thing.

Peter
OSR
@OSRDrivers