Script install .inf files
Created: 26 Jan 2011 | 6 comments
Hello,
I'm using Run Script tasks to install model specific drivers.
I have Lenovo T400 and manufacturer provides only .sys and .inf files from download page. There's no setup.exe what so ever.
Is there any method to install .inf files using batch file?
Discussion Filed Under:
Comments
Need some more info ;)
Hey Weedee
It would be nice to know which operating system your talking about.
If it's windows xp you can do this in your "mini-setup" with your unattended.txt file
And if it's windows 7 you can use i think it's dism to inject your drivers.
Kind Regards
Morten Leth
InstallHinf function, perhaps?
Does this work beyond Windows 2000? I haven't tried this before, but found this article at MSDN:
http://msdn.microsoft.com/en-us/library/Aa376957
Here's the example command:
RUNDLL32.EXE SETUPAPI.DLL,InstallHinfSection DefaultInstall 132 C:\WINDOWS\INF\SHELL.INF
Mike Clemson, Senior Systems Engineer
Intuitive Technology Group -- Symantec Platinum Partner
Hi McLemson and
Hi McLemson and Morten,
McLemson: I'll try your suggestion
OS is Windows XP SP3 x86
Image is already resealed with sysprep. Editing image with GhostExp is last possible option. I would like to use Run Script task instead.
One way....
Hey Weedee
As mclemson suggested, that way could be a possible way to accomplish what you want to do.
Hmm, granted you could change the unattended.txt file within your image, but you could also just overwrite the existing one which is in the image, you simply do a filecopy in the same winpe after having destributed your image down to the client.
I believe that would be the easiest way to do what you want to do without having the need to maintain a cmd file with all of your inf files.
Kind Regards
Morten Leth
Other options
I realise that you probably want to deliver your drivers at build time as suggested above, but if you want script the installation here are some ideas.
DPInst.exe (Microsoft) offers a way to install inf file based drivers from the command line (or batch file). Helpful links on this:
http://www.msigeek.com/285/creating-installation-for-device-driver-applications-using-dpinst
http://www.microsoft.com/whdc/driver/install/difxtools.mspx
I have also had success in the past with signed PnP drivers using the DIFxApp merge module to deliver inf file based drivers from an msi. This is also part of the Driver Install Frameworks (DIFx)
The AppDeploy link below has several useful suggestions for delivering drivers, including some detail on using the DIFxApp merge module.
http://www.appdeploy.com/messageboards/tm.asp?m=20827
Regards,
Darren.
Darren Collins
Applications Packaging and Deployment for the ICT Support Team,
Oxford University, UK.
Yikes people, how about the
Yikes people, how about the easy way:
PNPUTIL -a "X:\Path to Driver File\Driver.inf"
This will process the INF and copy the CAT/SYS/INF (and any DLL, EXE, etc) into the "DriverStore" folder... which is the same place Windows stores all the in-built drivers ready for auto plug-and-play instalaltion.
Since I found the option (1) above, that has been my best friend. I use option 2 to isntall Canon USB printers and scanners on our base images, etc... so I know that works too.
A final option. Look for the original manufactuer's site and see if they have a different driver. Quite often the ones on a vendor's site (i.e. Lenovo) are quite old anyway. I've also had success using other country sites like Japan CSD and Canada for Toshiba drivers in the past.
Quote: "I know not what other much is else. But what other else is there?" - ***** (OP hidden as that was too awful! Lol)
Would you like to reply?
Login or Register to post your comment.