Solved

Bat file help

Posted on 2013-06-27
4
694 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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 …
AutoHotkey is an excellent, free, open source programming/scripting language for Windows. It started out as a keyboard/mouse macros product, but has expanded into a robust language. This article provides an introduction to it, with links to addition…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

729 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