Solved

Bat file help

Posted on 2013-06-27
4
690 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

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

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

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…
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

734 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