/bundles/itninjaweb/img/Breadcrumb_cap_w.png
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   [ - ] Hide Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity

Answers

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
Answered 02/09/2006 by: yarborg
Blue Belt

Please log in to comment
0
Thank you for the quick reply. I am going to test this today and report back. Thanks again.

-Brian
Answered 02/09/2006 by: Soap
Senior Yellow Belt

Please log in to comment
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. [;)]
Answered 02/09/2006 by: neo2000
Purple Belt

Please log in to comment
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
Answered 02/10/2006 by: Soap
Senior Yellow Belt

Please log in to comment