Skip to main content
Print

How to Extract Drivers from an EXE Installer –

Most vendor driver downloads are self-extracting EXEs that wrap the real driver files (.inf, .sys, .cat). Extract those files when you need to inject drivers into an image, deploy them with MDT/SCCM/Intune, install them on a machine where the EXE fails, or keep a clean copy in a driver repository.

Try the methods in order: a vendor extract switch is fastest and cleanest; 7-Zip works on most other packages; capturing the temp folder catches the rest; exporting from a working machine is the fallback when you have no usable installer.

Applies to: Windows 10 and 11, vendor driver packages from Dell, HP, Lenovo, Intel, AMD, NVIDIA, Realtek and similar.

Prerequisites

  • Local administrator rights on the machine you work on.
  • 7-Zip installed (free; also handles .cab and .msi).
  • The driver EXE downloaded from the hardware vendor’s official support site — never from third-party driver sites.
  • An empty target folder, for example C:\Drivers\<Model>\<Device>. Keep paths short; some installers fail on long paths.
  • Optional: Process Monitor for Method 3, and innoextract for Inno Setup packages.

Method 1: Use the vendor’s extract switch

Many packages extract themselves when run with the right switch. Open an elevated Command Prompt in the download folder and run the command for your vendor or installer type.

Vendor / installer typeCommandNotes
Dell Update Package (DUP)driver.exe /s /e=C:\Drivers\DellOr run the EXE and click Extract in the dialog.
HP SoftPaqsp12345.exe /e /s /f C:\Drivers\HP/e extract only, /f folder, /s silent.
Lenovodriver.exe /VERYSILENT /DIR=C:\Drivers\Lenovo /EXTRACT=YESWithout /DIR, Lenovo extracts to C:\Drivers.
Inteldriver.exe -extract C:\Drivers\IntelSome older packages use -a -p C:\Drivers\Intel.
InstallShield setup.exesetup.exe /aAdministrative install; prompts for a network location to unpack to.
MSI inside the packagemsiexec /a driver.msi /qb TARGETDIR=C:\Drivers\MSIUnpacks the MSI’s files without installing.
WiX Burn bundlesetup.exe /layout C:\Drivers\BundleWrites the bundle’s payloads to the folder.
Inno Setupinnoextract driver.exe -d C:\Drivers\InnoInno packages often show “Inno Setup” in File > Properties > Details.

To find an unknown package’s switches, run driver.exe /?, driver.exe -h or driver.exe /help — many print a list. Check the vendor’s release notes too; HP and Dell document their switches there.

When the command finishes, open the target folder and confirm it contains .inf files (see Verify and deploy).

Method 2: Open the EXE with 7-Zip

Most self-extracting EXEs (7z SFX, ZIP SFX, CAB, NSIS, NVIDIA and many Realtek packages) are archives that 7-Zip opens directly.

  1. Right-click the EXE and choose 7-Zip > Open archive.
  2. Browse the contents. If you see folders and files such as setup.exe, .inf, .cab or .msi, the package is extractable.
  3. Choose 7-Zip > Extract to “<name>”, or from the command line: 7z x driver.exe -oC:\Drivers\Device.
  4. Look for nested packages and extract those too:
    • .cab → expand -F:* file.cab C:\Drivers\Device or 7-Zip.
    • .msi → msiexec /a as in Method 1, or 7-Zip (file names may come out garbled; msiexec is cleaner).
    • .zip or another .exe → repeat this method.
  5. Stop when you reach a folder containing .inf, .sys and .cat files.

If 7-Zip shows only PE sections such as .text, .rsrc and .data, the EXE is a real program, not an archive. Go to Method 3.

Method 3: Capture the files while the installer runs

Installers that can’t be opened still unpack their files to disk before installing. Catch them there.

  1. Run the EXE as administrator.
  2. When the first wizard screen appears (Welcome, License or Next), stop — don’t click Next or Cancel.
  3. Open each of these locations and sort by Date modified to find the newest folder:
    • %TEMP% (type it in the Explorer address bar)
    • C:\Windows\Temp
    • Vendor defaults: C:\SWSetup (HP), C:\Dell\Drivers (Dell), C:\Drivers (Lenovo), C:\AMD, C:\Intel, C:\NVIDIA
  4. Copy the whole folder to C:\Drivers\Device.
  5. Now cancel the installer. Most installers delete the temp folder on exit, so copy first.

Can’t find the folder? Start Process Monitor, filter on Process Name is driver.exe and Operation is WriteFile, then run the installer. The Path column shows where it writes.

Method 4: Export from a machine that already has the driver

If the installer won’t cooperate, install it normally on one machine, then export the driver from the Windows driver store. This exports only third-party drivers, not the inbox drivers Windows ships with.

  1. Open an elevated Command Prompt or PowerShell.
  2. Find the driver’s published name (oem##.inf):
    • pnputil /enum-drivers — match on Provider name and Class.
  3. Export one driver or all of them:
    • One: pnputil /export-driver oem42.inf C:\DriverExport
    • All: pnputil /export-driver * C:\DriverExport
    • PowerShell, all: Export-WindowsDriver -Online -Destination C:\DriverExport
  4. Each driver lands in its own subfolder named after its original INF.

The export contains the driver package only. Companion apps (control panels, audio consoles, utilities) are not included.

Verify and deploy the extracted driver

A usable driver package has three file types in the same folder: .inf (install instructions), .sys (the driver) and .cat (the signature catalog).

Check it matches the hardware

  1. In Device Manager, open the device > Properties > Details > Hardware Ids. Copy the top value, e.g. PCI\VEN_8086&DEV_15F3.
  2. Search the extracted folder for it: findstr /s /i /m "VEN_8086&DEV_15F3" C:\Drivers\*.inf. A hit means the package supports the device.
  3. Pick the right architecture folder (x64, amd64, Win64) if the package holds several.

Install or deploy it

ScenarioHow
One running PCpnputil /add-driver C:\Drivers\Device\*.inf /subdirs /install
One device, by handDevice Manager > Update driver > Browse my computer > point at the folder, tick Include subfolders
Offline Windows image (WIM)dism /Image:C:\Mount /Add-Driver /Driver:C:\Drivers /Recurse
MDTDeployment Workbench > Out-of-Box Drivers > Import Drivers
Configuration ManagerSoftware Library > Drivers > Import Driver, then add to a driver package
IntunePackage with pnputil as a Win32 app, or use Windows Driver Update management

Troubleshooting and tips

SymptomLikely causeFix
Extracted folder has no .infPackage is a utility, firmware/BIOS update or app, not a driverCheck the vendor page for a separate driver download; firmware can’t be deployed this way.
Extract switch does nothingWrong switch or not elevatedRun as administrator; try /?, then Methods 2–3.
Temp folder vanishes before you copy itInstaller cleans up on exit or after extractionCopy while the first wizard screen is still open; use Process Monitor to find the path faster.
pnputil reports “no matching devices”INF doesn’t list this hardware ID, or wrong architectureRecheck the hardware ID and the x64 folder; get the model-specific package.
Install blocked: signature errorMissing or altered .cat fileKeep all files from the INF’s folder together; re-extract from the original EXE.
Antivirus quarantines files during extractionHeuristic flag on SFX unpackingConfirm the EXE is vendor-signed, then extract in an excluded folder.

Before extracting any EXE, confirm it is genuine: right-click > Properties > Digital Signatures should show the hardware vendor, or run Get-AuthenticodeSignature .\driver.exe and check for Valid.

Keep a tidy repository. Store each package as Vendor\Model\OS\Device\Version, and keep the original EXE beside the extracted files so you can re-extract later.

DCH drivers. Modern “DCH” packages split the driver from its control app, which is distributed through the Microsoft Store. Extracting gives you the driver; deploy the app separately if users need it.