HadroLepton Posted April 6, 2004 Share Posted April 6, 2004 i am trying to setup win2k on my ibm x31 laptopi need these drivers to be installed unattendedhttp://www-306.ibm.com/pc/support/site.wss...ocid=MIGR-46096the archive contains a whole bunch of files for all flavors of ms os. the drivers which i actually need are 5 files and an .inf file. the installation procedure requires me to open device manager, properties, ..., specify location of the .inf file. how can i do this unattended?note i don't mean unattended like install with windows from cd unattended. what i need is more like batch file unattended. Link to comment Share on other sites More sharing options...
Ausmith1 Posted April 6, 2004 Share Posted April 6, 2004 The Microsoft utility Devcon can do this.Full documentation is available at the page linked to above. Link to comment Share on other sites More sharing options...
gosh Posted April 6, 2004 Share Posted April 6, 2004 Why would you need devcon? Setup uses SetupAPI which logs to setupapi.log, this should be enough information to go from.If you have NIC drivers that use an inf and 5 files, put the 6 files in the i386 folder. Edit dosnet.inf and add the 6 files:d1,file1.extd1,file2.extin txtsetup.sif add:filexxx.inf = 1,,,,,,,20,0,0driver1.sys = 1,,,,,,,4,0,0 driver2.sys = 1,,,,,,,4,0,0 etcI would think that would do it. When setup does PNP enumeration it should find the inf, and the inf should copy everything correctly.I do things the hard way. If you want the easy way use the OemPnPDriversPath unattend switch. Search the forums for examples of how to do that.-gosh Link to comment Share on other sites More sharing options...
Ausmith1 Posted April 7, 2004 Share Posted April 7, 2004 Well, the original poster specifically requested on how to do this in a batch file and not in an unattended CD, it would seem that the original poster has a specific reason for doing it this way.Devcon is the easiest way I know of installing a driver from a batch file... Link to comment Share on other sites More sharing options...
HadroLepton Posted April 7, 2004 Author Share Posted April 7, 2004 thanks Ausmith1i am tinkering with devcon now Link to comment Share on other sites More sharing options...
HadroLepton Posted April 8, 2004 Author Share Posted April 8, 2004 devcon works like a charm. but there is a strange side effect everytime i use devcon to install a driver.here is the command line i'm usingdevcon install inffile.inf "device_name"(i have to put device name in "" otherwise the console will interpret the & in the device name)the drivers will install and the device will work correctly. the side effect is an unknown device which will install itself in the same category as the installed device is (in the network adapter category when it's a nic for example). one unknown device will appear for everytime i run the command. i can delete the unknown devices, windows will not redetect them. they seem to be real phantom devices. any idea about this? Link to comment Share on other sites More sharing options...
Ausmith1 Posted April 9, 2004 Share Posted April 9, 2004 I can't say I've ever seen this happen... Link to comment Share on other sites More sharing options...
HadroLepton Posted April 9, 2004 Author Share Posted April 9, 2004 i solved the problemthe command should be update instead of installdevcon update inffile.inf "device_name" Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now