Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windows command to do 'right click and install'

Status
Not open for further replies.

pho01

Programmer
Mar 17, 2003
218
0
0
US
Does anybody know a way in Windows to execute this task by using a windows command:

right-click on a file and select install.

I'm trying to create a bat script to install this driver automatically to multiple machines, if there's a way to perform the install by using a windows command, it would be great.
THanks!
 
You can use msiexec.exe .. see msiexec.exe /? for help.

Aslam
 
It's an .inf file to install, how can i use msiexec.exe to install it?
 
Here it is..

The normal method to install a .inf file is to right click on it and select Install from the context menu however it is also possible to install from the command line. The syntax is:

C:\> rundll32 syssetup,SetupInfObjectInstallAction DefaultInstall 128 .\<file>.inf


Aslam
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top