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
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)
Please log in to answer
Posted by:
yarborg
18 years ago
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
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
Posted by:
neo2000
18 years ago
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. [;)]
* 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
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.