Triying to u开发者_运维百科se the built in Visual Studio 2010 to install a couple of files and after that is done to run another installer package (3rd Party Installation Wizard).
I tried that the "normal" way and didn't succeed. Installers can't be mixed, run simultaneously.
What I did, though, was to make another application that run two installers, one after another. My application first, then SQL Server Express. It worked. Eventual problem is, if second installer fail, it wont rollback the first installation. It was something I could live with.
My setup application then looks like this (pseudocode):
proces1 = Run MyApp.msi
Wait for proces1 to complete
proces2 = Run 3thPartyApp.msi
Wait for proces2 to complete
You can get return codes from processes you run from .net, so you know if anything failed.
Finally, you can use selfextracting archive to package everything into one, easy to distribute exe file.
精彩评论