• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 278
  • Last Modified:

Can a VS Setup and Deployment installer trigger an external install.

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.
1 Solution
Dave_GleasonAuthor Commented:
Tried that,

Seems like the custom action can't call another installer (because the first isn't complete).  If I place the custom action at the Install or Commit level an error is thrown during install.

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now