Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8710155
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T04:33:08+00:00 2026-06-13T04:33:08+00:00

All – I need to carry out several tasks silently via Custom Actions. Essentially,

  • 0

All –

I need to carry out several tasks silently via Custom Actions. Essentially, I need to install and license a 3rd party application after I’ve laid down my own bits:

  1. I install my bits into the Application Folder
  2. I launch a custom action to Install the 3rd party app via FooSetup.exe
  3. I launch another custom action to license the third party app via FooLicense.exe, installed during step 2.

During the Commit phase of the installer, I fire this code to launch the silent setup of the 3rd party application:

[System.Security.Permissions.SecurityPermission(System.Security.Permissions.SecurityAction.Demand)]
public override void Commit(IDictionary savedState)
{
  base.Commit(savedState);

  ProcessStartInfo startInfo = new ProcessStartInfo();
  startInfo.Arguments = "/verysilent";
  startInfo.FileName = Context.Parameters["TARGETDIR"].ToString() + "fooSetup.exe";
  Process myProcess = System.Diagnostics.Process.Start(startInfo);
}

It works fine – however, I can’t begin “phase 3” (license the third party app) until fooSetup.exe actually completes.

What is the best practice to approach this scenario? I’m guessing I’m going to have to setup an Event Handler on myProcess to watch for the exit of fooSetup.exe? (I’ve validated that FooSetup.exe indeed exits post-completion while in silent mode)

Any examples out there?
I’m a Business Intelligence guy vs. a C# jockey, so any samples/pointers you push me towards would be appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T04:33:10+00:00Added an answer on June 13, 2026 at 4:33 am

    I guess Process.WaitForExit() is what you want. http://msdn.microsoft.com/en-us/library/fb4aw7b8.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

wondering how to carry out this requirement if at all possible. I am modifying
I have multiple threads who all need to write to the same Dictionary. I
I have a whole bunch of buttons that all need to have both a
I just have the array of 15 values that all need to be inserted
Alright simple question I have integriters like 5 188 4634 And they all need
All I need this for is strcpy(). I want to see whether the first
All I need is to get the list of currently open documents in the
All i need help in downloading a file through headers its working fine but
I need all records which have year entered from search criteria. for ex: String
i need all permutation from N lists, i dont know N until the program

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.