/build/static/layout/Breadcrumb_cap_w.png

Install multiple msi's with a .bat

Hello All,

I am trying to create a batch file to call in SMS 2003 that will install the 3 msi installers below. Can someone help me figure out the comman line switches to accomplish this? I want to have each installation wait for the other to finish before kicking off. I know that there is a /w switch for this but I am under the impression this will only work when calling the setup.exe to kick of the msi installs. Can anyone shed some light on this? Thanks


\\sjmhfs1\packages\Harmony\Harmony.msi /qb

\\sjmhfs1\packages\Harmony\Dashboard.msi /qb

\\sjmhfs1\packages\Harmony\Configurator.msi /qb


-Brian

0 Comments   [ + ] Show comments

Answers (4)

Posted by: yarborg 18 years ago
Blue Belt
0
You'll probably want to use msiexec.exe in your batch file like this:

msiexec.exe /i "\\sjmhfs1\packages\Harmony\Harmony.msi" /qb

The batch file should wait since msiexec.exe will hang on until the process is finished. However, if you have any problems you can also use the "start /wait" command which kicks things off like you would from the run box.

Here is a resource for the msiexe.exe command line switches.

http://helpnet.installshield.com/robo/projects/HelpLibDevStudio9/IHelpCmdLineMSI.htm
Posted by: Soap 18 years ago
Senior Yellow Belt
0
Thank you for the quick reply. I am going to test this today and report back. Thanks again.

-Brian
Posted by: neo2000 18 years ago
Purple Belt
0
My experience is, that SMS usually messes up with batch files. Same thing with cmd's. (basically the same) So if that's the problem, you've got two options:

* Use the batch file you've created, and look on the internet for a batch/cmd to exe converter. Somehow, this has helped me in the past with batch file issues. (the quick and dirty way [&:])

* Use a vbscript to automate the tasks for you. You are going to have to rely on it sooner or later in scripting. [;)]
Posted by: Soap 18 years ago
Senior Yellow Belt
0
Yea, I would have liked to create a vbscript to perform the uninstall of the old software and then the install of the new but I have no clue how to create this in a vbscript and need this done today. I'll have to see what I can find online. Thank you for the responses guys.

-Brian
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ