Monday, July 20, 2009

Helpful batch file command for installers

Hi,

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.

:)

Enjoy,

2 comments:

Anonymous said...

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

Thanks.

Shai Petel said...

Hi,

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.