Solved

MSI and Batch Files

Posted on 2006-12-01
5
1,474 Views
Last Modified: 2006-12-29
Does anybody know how to call a .bat file from within an MSI?

MSI need to do the following in this order:

1. Run unregister.bat
2. Copy files into the target directory (this I can do)
3. Run register.bat

Any idea how this could be accomplished all from the MSI.

My batch files are simply going to be executing some command lines such as "regasm"

Thanks!

Jordan
0
Comment
Question by:jrmcdona
[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
  • 3
5 Comments
 
LVL 67

Expert Comment

by:sirbounty
ID: 18057810
Why not have a single batch file that does the unregister bit, runs the msi (and waits) and then runs the register portion?
0
 

Author Comment

by:jrmcdona
ID: 18057818
ah good thinking!

is there batch file code that will wait for the MSI to be done?

thanks
0
 
LVL 67

Accepted Solution

by:
sirbounty earned 500 total points
ID: 18057837
You can use
Start /wait <MSI>

and it should wait for the processing to complete.
0
 
LVL 67

Expert Comment

by:sirbounty
ID: 18212045
It appears that what I posted has resolved this one..
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…

740 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