Can a VS Setup and Deployment installer trigger an external install.
Posted on 2012-09-07
In VS2008, is there a way to trigger an external install during the original one. Here is what I am tring to do.
I have an application that gets installed using a Setup and deployment project. (Setup.exe)
I want at the end or near the end to trigger another Setup.exe (located in a slightly different directory to install some NI software (also Setup.exe). Their redistributable doesn't seem to include just one MSI, but rather several. Thats why I want to trigger the setup.exe.
I have tried to do this using Custom Actions (both Install and Commit) to trigger the other install and that seems to start ok, but never finishes. I think the windows installer is using a mutex to prevent the second installer from really getting going because it thinks the original installer isn't complete.
I have tried to go down the route of creating an installer class but I didn't get very far with that because I could only get it to work with MSI not bootstrappers as shown below.
( System.Diagnostics.Process.Start("MSIEXE.EXE", "/i """ & savedState.Item("OtherMSIPath").ToString & """ /qb"))
Any help is greatly appreciated.