Tagor Posted April 2, 2005 Share Posted April 2, 2005 Is there a way to install a driver in windows with autoit? For example using the .inf files. Link to comment Share on other sites More sharing options...
Tagor Posted April 2, 2005 Author Share Posted April 2, 2005 I have found a script to install a modem, but is there also a way to install a network card? Link to comment Share on other sites More sharing options...
Westi Posted April 2, 2005 Share Posted April 2, 2005 (edited) Use rundll.exe setupx.dll,InstallHinfSection DefaultInstall 132 your_inf_name.INF Upper and lower case is important, i think. Edited May 6, 2005 by Larry Link to comment Share on other sites More sharing options...
Tagor Posted April 2, 2005 Author Share Posted April 2, 2005 As far as I know if you use the above code, the user will still need to confirm the installation of the hardware (the 'new hardware found popup' in windows). Link to comment Share on other sites More sharing options...
Westi Posted April 2, 2005 Share Posted April 2, 2005 As far as I know if you use the above code, the user will still need to confirm the installation of the hardware (the 'new hardware found popup' in windows).This depends on the corresponding .inf file. Link to comment Share on other sites More sharing options...
Tagor Posted April 2, 2005 Author Share Posted April 2, 2005 Is there a way to suppres that in the inf file? Link to comment Share on other sites More sharing options...
Tagor Posted April 4, 2005 Author Share Posted April 4, 2005 Kick . Link to comment Share on other sites More sharing options...
Tagor Posted April 6, 2005 Author Share Posted April 6, 2005 Really nobody who knows this? Link to comment Share on other sites More sharing options...
DaveF Posted April 7, 2005 Share Posted April 7, 2005 4 days have gone by, what have you tried yourself? If you've got an .INF file based driver install you can use IExpress.exe (included in Win2k and WinXP, downloadable from MS otherwise) to pack all the files into a self-extracting EXE that runs the INF at extract time. If the EXE will be run in a limited user environment it won't be able to write to or change HKLM registry keys, so you'd need to wrap it in an AutoIt3 script that would run it as a privileged user, a-la: FileInstall("iexpress-wrapped-inf.exe", @TempDir & "\iexpress-wrapped-inf.exe") RunAsSet("username", @ComputerName, "password") RunWait(@TempDir & "\iexpress-wrapped-inf.exe") RunAsSet() If your driver install is distributed with a setup EXE there's a (good) chance that the setup can run as an unattended install with a command line switch, try running the setup from a DOS box with a command line switch of /? for a help dialog. Yes yes yes, there it was. Youth must go, ah yes. But youth is only being in a way like it might be an animal. No, it is not just being an animal so much as being like one of these malenky toys you viddy being sold in the streets, like little chellovecks made out of tin and with a spring inside and then a winding handle on the outside and you wind it up grrr grrr grrr and off it itties, like walking, O my brothers. But it itties in a straight line and bangs straight into things bang bang and it cannot help what it is doing. Being young is like being like one of these malenky machines. Link to comment Share on other sites More sharing options...
Flashz Posted April 7, 2005 Share Posted April 7, 2005 Try using DevCon from Microsoft. It uses the command line for installing drivers. It's quite easy to use after going through the help file Link to comment Share on other sites More sharing options...
Tagor Posted April 8, 2005 Author Share Posted April 8, 2005 Thanks guys this helped me a lot 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