Solved

Bat file help

Posted on 2013-06-27
4
657 Views
Last Modified: 2013-06-28
I have a bat file that installs 6 msi's and 1 exe.  I works perfectly until I deploy using SCCM.  SCCM thinks it has installed but nothing is installed.  I am trying to find a switch that will allow each msi to complete before moving onto the next.  Will "/wait" work for this?
0
Comment
Question by:mcdermk
  • 2
  • 2
4 Comments
 
LVL 17

Expert Comment

by:Lior Karasenti
ID: 39281525
Yes, you can try adding the /wait parameter to the start command and it should work correctly.
0
 

Author Comment

by:mcdermk
ID: 39281636
Do you mean?

msiexec /i ActivInspire.msi /quiet /qn /wait
msiexec /i ActivInspireCoreRes.msi /quiet /qn /wait
msiexec /i ActivInspireHWRRes.msi /quiet /qn /wait
msiexec /i ActivInspireHelp.msi /quiet /qn /wait
msiexec /i install_flash_player_11_3_plugin.msi /quiet /qn /wait
"ActivDriver_x86 v5.9.16 setup.exe" /S /v/qn/
or
should the /wait be placed before or after /i?  Sorry I am really new at this.
0
 
LVL 17

Accepted Solution

by:
Lior Karasenti earned 500 total points
ID: 39282114
No, as far as I can tell there's no /wait switch in msiexec.exe. You should do it like so:
start /wait msiexec /i ActivInspire.msi /quiet /qn 
start /wait msiexec /i ActivInspireCoreRes.msi /quiet /qn 
start /wait msiexec /i ActivInspireHWRRes.msi /quiet /qn 
start /wait msiexec /i ActivInspireHelp.msi /quiet /qn 
start /wait msiexec /i install_flash_player_11_3_plugin.msi /quiet /qn
"ActivDriver_x86 v5.9.16 setup.exe" /S /v

Open in new window

0
 

Author Closing Comment

by:mcdermk
ID: 39283889
Thanks!  This worked great.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

If like me you are one who spends a lot of time working and scripting with cmd.exe, sometimes it is handy to be able to quickly view a calendar for a given month and year. This script will quickly do just that!  Save the code posted below to a .bat …
This article was inspired by a question here at Experts Exchange (http://www.experts-exchange.com/Software/Photos_Graphics/Images_and_Photos/Q_28629170.html). The requirements stated in that question are (1) reduce the file size of a large number of…
This video discusses moving either the default database or any database to a new volume.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now