Install DRIVER.INF with command file

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

  1. Mr Been

    Mr Been MDL Member

    Feb 24, 2008
    228
    61
    10
    I'm trying for several days now to install a DRIVER.INF with setupcomplete.cmd while installing WIN10, with no luck.
    I tried these 3 possibilities :

    1) start %WINDIR%\system32\rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 %~dp0AsusMassStorage\iteatapi.inf

    2) start %WINDIR%\system32\rundll32.exe syssetup,SetupInfObjectInstallAction DefaultInstall 128 %~dp0AsusMassStorage\iteatapi.inf

    3) start %~dp0DEVCON.EXE -r install %~dp0AsusMassStorage\iteatapi.inf

    but no success!!

    Perhaps anybody of you knows how to do that?

    Thank you
     
  2. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    17,384
    22,108
    340
    #2 Enthousiast, Dec 9, 2016
    Last edited by a moderator: Apr 20, 2017
    Can't it be installed, offline in the mounted wim?

    Code:
    dism.exe /image:"x:\mount" /Add-Driver /driver:"y:\driver" /recurse
     
  3. KNARZ

    KNARZ MDL Addicted

    Oct 9, 2012
    879
    457
    30
    #3 KNARZ, Dec 9, 2016
    Last edited by a moderator: Apr 20, 2017
    the beste way for you would be
    Code:
    pnputil.exe -i -a
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Mr Been

    Mr Been MDL Member

    Feb 24, 2008
    228
    61
    10
    thank you for your suggestions,
    @ Enthousiast
    I think I'll do it with DISM, I've some experience with this.
    @ KNARZ
    it's the first time I hear something of PNPUTIL.EXE, no experience.
     
  5. Mr Been

    Mr Been MDL Member

    Feb 24, 2008
    228
    61
    10
  6. sebus

    sebus MDL Guru

    Jul 23, 2008
    5,953
    1,817
    180
    Nasty, nasty Google...