Solved

MSI and Batch Files

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

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 …
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

706 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now