Install driver with DISM

Discussion in 'Windows 10' started by Mr Been, Feb 10, 2016.

  1. Mr Been

    Mr Been MDL Senior Member

    Feb 24, 2008
    262
    70
    10
    I have to integrate in my Win10 Wim-file the drivers of my scanner Epson Perfection 1200U.
    I install Win10 with Autounattend.xml and Setupcomplete.cmd.
    The driver consists of 2 files. An .INF file and a .CAB file.
    The .Cab file contains the .Inf file too.
    If I do this with DISM : Dism /Image:C:\test\offline /Add-Driver /Driver:C:\Epson.inf
    will only the .Inf file be inegrated, or the .Cab file too?
    What can I do that the scanner is recognized and accessible after installation?

    Thank you
     
  2. agent268

    agent268 MDL Junior Member

    Feb 20, 2012
    96
    35
    0
    Did the driver come by default as just the INF and the CAB file or did you manually extract the INF with the CAB? Usually driver packages are fully extracted and not compacted in a CAB file. So my guts says this won't work until it is properly extracted and staged.
     
  3. 100

    100 MDL Expert

    May 17, 2011
    1,354
    1,590
    60
    Correct. A driver package consists of .inf (the setup information), .sys (kernel-mode driver), and .cat (digital signing) at minimum, and possibly additional files. That's what you'll need for installing the driver.

    Also, dism.exe doesn't take the path to the .inf as the argument, but the path to the directory containing an .inf. So extract your .cab, and point dism.exe to where you extracted it.

    In case you're integrating a driver while running a different OS version than that of the offline image you'll also need the "/forceunsigned" argument, else it will fail because it can't verify the offline image's signing requirements.
     
  4. Mr Been

    Mr Been MDL Senior Member

    Feb 24, 2008
    262
    70
    10
    @agent268

    The driver came with INF and CAB file. In the CAB the same INF is included.
    So I have to extract the CAB and insert the INF with DISM?

    Thank you for helping.
     
  5. LiteOS

    LiteOS Windowizer

    Mar 7, 2014
    2,361
    1,070
    90
    If u running win 10 already
    u can export those drivers

    and add them back to wim image
     
  6. Mr Been

    Mr Been MDL Senior Member

    Feb 24, 2008
    262
    70
    10
    @100

    Thank you.
    You'r right. The CAB contains CAT and DLLs ICMs and INF.
    O.K. I'll extract the CAB into a directory and will use this command to insert:
    Dism /Image:C:\test\offline /Add-Driver /Driver:C:\Epson.inf
     
  7. kaljukass

    kaljukass MDL Guru

    Nov 26, 2012
    3,468
    1,354
    120
    #7 kaljukass, Feb 10, 2016
    Last edited by a moderator: Apr 20, 2017
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. Mr Been

    Mr Been MDL Senior Member

    Feb 24, 2008
    262
    70
    10
    @lite8

    but why export and then add again??
    Thanks
     
  9. Mr Been

    Mr Been MDL Senior Member

    Feb 24, 2008
    262
    70
    10
    #9 Mr Been, Feb 10, 2016
    Last edited by a moderator: Apr 20, 2017
    (OP)
  10. LiteOS

    LiteOS Windowizer

    Mar 7, 2014
    2,361
    1,070
    90

    U might want to test the driver first ?
    to update to lastest version ?

    cos windows export it in compatible package?

    I tried few times to add driver to wim, it didnt work maybe it was me...mb the package [win7 btw], so last thing i did,i just drop the files in inf folder and it driver found while installation
     
  11. Mr Been

    Mr Been MDL Senior Member

    Feb 24, 2008
    262
    70
    10
    Thank you all.

    Finally it's working!

    I have tried so much alternatives that didn't work.