Sign in to follow this  
Followers 0
Tagor

Install a driver

11 posts in this topic

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



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

#3 ·  Posted (edited)

Use

rundll.exe setupx.dll,InstallHinfSection DefaultInstall 132 your_inf_name.INF

Upper and lower case is important, i think.

Edited by Larry

Share this post


Link to post
Share on other sites

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

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

Is there a way to suppres that in the inf file?

Share this post


Link to post
Share on other sites

Kick :).

Share this post


Link to post
Share on other sites

Really nobody who knows this?

Share this post


Link to post
Share on other sites

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

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

Thanks guys this helped me a lot :)

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0