Jump to content

Recommended Posts

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
Posted

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).

Posted

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.
Posted

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.

Posted

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...