Solved

Bat file help

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Batch to Restart Remote Computers 4 102
Carriage Return in Batch File 5 70
Batch/VBScript : Disable Windows tasks 7 45
Batch file to convert a xlsx file to csv 5 237
When you receive another warning that your shared drive is almost full and you have asked your users to clean out old files again and again, here is a single command that may help. This command will place all the files that have not been used rec…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

749 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