Monday, July 20, 2009

Helpful batch file command for installers


Just a short one this time,

here is a nice script for looping through all MSI files in current folder / sub folders and running the installers one after the other.

Just paste this into a install.bat file and place with your set of installers:
for /f "delims=" %%a IN ('dir /s /b *.msi') do MSIEXEC /i "%%a"

simple, 1 line of script made my life easier with WikiPlus.

You see, installing it involves running installers for 5 different products so this way I just throw them into sub folders and this little script does the rest for me.




Anonymous said...

How do i deploy these webparts on the selected web applications in MOSS.


Shai Petel said...


This command is not for installing web parts, but for running all MSI installers in the current folder one after the other.

For installing web parts you can use the STSADM command.