Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1482
  • Last Modified:

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
0
jrmcdona
Asked:
jrmcdona
  • 3
1 Solution
 
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:
You can use
Start /wait <MSI>

and it should wait for the processing to complete.
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.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now