• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1480
  • 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

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone 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