MSI and Batch Files

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
jrmcdonaAsked:
Who is Participating?
 
sirbountyCommented:
You can use
Start /wait <MSI>

and it should wait for the processing to complete.
0
 
sirbountyCommented:
Why not have a single batch file that does the unregister bit, runs the msi (and waits) and then runs the register portion?
0
 
jrmcdonaAuthor Commented:
ah good thinking!

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

thanks
0
 
sirbountyCommented:
It appears that what I posted has resolved this one..
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.