Solved

MSI and Batch Files

Posted on 2006-12-01
5
1,475 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Suggested Solutions

The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

710 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