Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

MSI and Batch Files

Posted on 2006-12-01
5
Medium Priority
?
1,479 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 2000 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

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

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

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 …
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

916 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