Jump to content

Install a driver


Recommended Posts

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

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

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
 Share

  • Recently Browsing   0 members

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