0
votes

Triying to use 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).

1
Two installer packages? My pet peeve. . .surfasb
If I knew exactly what the other installer did then I might of done it all in one package.Rick
Why not add the second installer as a prerequisite? stackoverflow.com/questions/1334436/…rmrrm
Tried it and managed to add the prerequisite to the list, but have a couple of issues with it. First, the 3rd Party Installation is InstallSheild 5.10.130.0, not exactly sure how to add that to the product.xml file. I added just the setup.exe in the xml and when the program complied it only included the setup.exe file. I hand copied the rest of the files and when the installer runs it gives the error: "unable to find installation languages"Rick

1 Answers

1
votes

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.