MSFN Forum: How can I install a .inf file from the command line? - MSFN Forum

Jump to content


Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

How can I install a .inf file from the command line? Rate Topic: -----

#21 User is offline   click-click 

  • Junior
  • Pip
  • Group: Members
  • Posts: 71
  • Joined: 08-October 09

Posted 09 March 2013 - 10:59 AM

Neither of those commands work. I had tried those already. No error msgs. but did not install. The monitor still shows Generic PnP Monitor instead of ThinkPad Display 1680x1050. I think this is because windows thinks I already have the newest drivers installed and advpack won't process the inf file.

The only way I could get this to install from a command line was:
c:\windows\system32\infdefaultinstall.exe  D:\@Drivers\$T500\$Common\Video\LCDMon\geoi02w8\TPLCD.INF


This post has been edited by click-click: 09 March 2013 - 11:02 AM



#22 User is offline   jaclaz 

  • The Finder
  • Group: Developers
  • Posts: 11,448
  • Joined: 23-July 04
  • OS:none specified
  • Country: Country Flag

Posted 09 March 2013 - 11:20 AM

Wait a minute:

Quote

infdefaultinstall.exe

that should mean Vista :ph34r: or later, it is possible that something has changed, I guess that this thread was originated about XP/2003 (and possibly earlier OS's). :unsure:

jaclaz

#23 User is offline   click-click 

  • Junior
  • Pip
  • Group: Members
  • Posts: 71
  • Joined: 08-October 09

Posted 09 March 2013 - 11:54 AM

Yes, sorry. I should have mentioned that I was using Win8. Advpack.dll should work there too, but I don't know why it doesn't for this particular inf file. Anyway, using infdefaultinstall was a workaround for me. Thanks .....

This post has been edited by click-click: 09 March 2013 - 11:59 AM


#24 User is offline   submix8c 

  • Inconceivable!
  • Group: Patrons
  • Posts: 3,247
  • Joined: 14-September 05
  • OS:none specified
  • Country: Country Flag

Posted 09 March 2013 - 03:52 PM

Ummm... I hate to break in here, but if you have a running OS that already has ANY driver installed, the ONLY way (that I know of at least) to use a DIFFERENT driver is to Update Driver in the Device Manager. OTHERWISE, the Driver has to be Integrated (however depending on the OS) to be Installed during Clean or Upgrade.

I know of NO other way to update a Driver. The INF may PUT the Drivers where they need to be but they won't "automagically" change just because you "installed" it. Generally speaking Driver Updates Packages "know" what to "delete older" and "force" a reinstall of the NEWER ("alternate") Driver. In other words, just putting (e.g.) NEWER nVidia Drivers via INF into my OS won't by default USE the Newer Driver. You would have to REMOVE the Device to allow it to "re-find" it.

That's why there's SPECIFICALLY an "Update Driver" button in Device Manager.

#25 User is offline   Geej 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 634
  • Joined: 01-January 08
  • OS:XP Pro x86
  • Country: Country Flag

Posted 09 March 2013 - 07:47 PM

This article says "DefaultInstall sections must not be used for device installations. etc" in the 'Remarks' heading. It also says try calling using InstallHinfSection.

But also this article says as long as there is an INF Manufacturer section, it generally will also work.
We have the section in tplcd.inf
[Manufacturer]
%Lenovo%=Lenovo,NTx86,NTamd64


Perhaps we can try calling InstallHinfSection on commandline (w/o using infdefaultinstall.exe)
rundll32 setupapi,InstallHinfSection D:\@Drivers\$T500\$Common\Video\LCDMon\geoi02w8\tplcd.inf


Above are just pure guess on my part.

This post has been edited by Geej: 09 March 2013 - 07:48 PM


#26 User is offline   jaclaz 

  • The Finder
  • Group: Developers
  • Posts: 11,448
  • Joined: 23-July 04
  • OS:none specified
  • Country: Country Flag

Posted 10 March 2013 - 04:37 AM

I don't know. :w00t: :blushing:

Last time I had issues with a device, I had to go through a quite complex workaround, see:
http://www.msfn.org/...on-for-project/
(to avoid having to use devcon and redistibute it).

In the meantime a couple new (free) thingies were found, see here (only SEEMINGLY unrelated) that may do:
http://www.911cd.net...showtopic=24100
http://www.911cd.net...ndpost&p=165126
http://www.911cd.net...ndpost&p=165130
http://www.911cd.net...ndpost&p=165155

So we have both Paraglider's http://www.paraglide...s/devcontrol.7z and the Alter http://alter.org.ua/...t/win/drv_inst/ to experiment with...

jaclaz

Share this topic:


  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy