Tagor 0 Posted April 2, 2005 Is there a way to install a driver in windows with autoit? For example using the .inf files. Share this post Link to post Share on other sites
Tagor 0 Posted April 2, 2005 I have found a script to install a modem, but is there also a way to install a network card? Share this post Link to post Share on other sites
Westi 0 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 Share this post Link to post Share on other sites
Tagor 0 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). Share this post Link to post Share on other sites
Westi 0 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. Share this post Link to post Share on other sites
Tagor 0 Posted April 2, 2005 Is there a way to suppres that in the inf file? Share this post Link to post Share on other sites
Tagor 0 Posted April 6, 2005 Really nobody who knows this? Share this post Link to post Share on other sites
DaveF 0 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. Share this post Link to post Share on other sites
Flashz 0 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 Share this post Link to post Share on other sites
Tagor 0 Posted April 8, 2005 Thanks guys this helped me a lot Share this post Link to post Share on other sites