Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

MSI and Batch Files

Posted on 2006-12-01
5
Medium Priority
?
1,478 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 2000 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

719 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