Topic: Export Host Third-Party (OEM) Driver Packages  (Read 101 times)

Export Host Third-Party (OEM) Driver Packages
« on: January 12, 2021, 04:44:15 PM »

ChrisR

  • XPE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 3494
ExportHostDrv : Export Host Third-Party (OEM) Driver Packages

Usage     : ExportHostDrv.exe <Path_to_the_Destination_Folder>
Example : ExportHostDrv.exe D:\ExportHostDriver

Result
ila_rendered

It is ~the same as : Dism /Online /Export-Driver /Destination:D:\destpath
With the list of installed drivers sorted and ordered as in the device manager
Not just the DriverStore folder (previous version included) as with dism: iigd_dch.inf_amd64_56663c64bec44963, not really speaking.
And it is faster than Dism.

The Executables, ExportHostDrv_x64(x86).exe and the PureBasic source code is available here: https://github.com/ChrisRfr/ExportHostDrv
Click Release in the left panel

Re: Export Host Third-Party (OEM) Driver Packages
« Reply #1 on: January 23, 2021, 05:51:22 PM »

Homes32

  • Code Baker
  • Chef
  • ***
  • Date Registered: Dec 2010
  • Posts: 177
Thanks for sharing this nice tool!

Can you clarify your statement:
Quote
It is ~the same as : Dism /Online /Export-Driver /Destination:D:\destpath

In my comparison
Code: [Select]
Dism /Online /Export-Driver /Destination:D:\destpath
yields an export of 2,323 files @1.88GB

on the same system your tool exports 269 files @1.01GB

not anywhere close to "~the same" result.  :cool:


Re: Export Host Third-Party (OEM) Driver Packages
« Reply #2 on: January 23, 2021, 07:01:32 PM »

ChrisR

  • XPE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 3494
Code: [Select]
Dism /Online /Export-Driver /Destination:D:\destpath
Export all Third-Party driver including installed drivers and also the previous versions.
So in the export, there are duplicate drivers.

ExportHostDrv Export only the currently installed driver by using DI_FLAGSEX_INSTALLEDDRIVER in SP_DEVINSTALL_PARAMS structure.
There is no need here to export the previous versions as well.

In my opinion, In Dism Export-Driver, a parameter is missing to select only the installed drivers.
or rather the opposite, a parameter to export also the previous versions in addition to the installed drivers.

Re: Export Host Third-Party (OEM) Driver Packages
« Reply #3 on: January 23, 2021, 07:03:11 PM »

Homes32

  • Code Baker
  • Chef
  • ***
  • Date Registered: Dec 2010
  • Posts: 177
makes sense now. thanks!

 

Powered by EzPortal