Driver Update

Hello,

I am new to Windows driver development and I have a question regarding
driver update. I need to update a running driver to a newer version without
booting.

Are there any best practices I need to follow to allow updating drivers
without boot?

Thanks,


-George

You have the DiInstallDriver API which, according to the documentation, seems to meet your requirements.

https://msdn.microsoft.com/en-us/library/windows/hardware/ff544717(v=vs.85).aspx

But let me recommend DEVCON.EXE. Actually DEVCON.EXE never installs drivers but updates drivers, even for new devices. Look at the “cmdUpdate” function:

https://github.com/Microsoft/Windows-driver-samples/blob/master/setup/devcon/cmds.cpp

W. N.

Hi George,

The loaded driver has to be unloaded before update.

Thanks!
Regards,
Rohan Kumbhar.

On Mon, May 15, 2017 at 6:23 PM, George Luiz Bittencourt <
xxxxx@georgeluiz.com> wrote:

Hello,

I am new to Windows driver development and I have a question regarding
driver update. I need to update a running driver to a newer version without
booting.

Are there any best practices I need to follow to allow updating drivers
without boot?

Thanks,


-George
— NTDEV is sponsored by OSR Visit the list online at: MONTHLY seminars
on crash dump analysis, WDF, Windows internals and software drivers!
Details at To unsubscribe, visit the List Server section of OSR Online at

Just be sure there isn’t any opened handle to any device object created by the driver or any outstanding reference.

J. S.