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 794737
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T22:21:43+00:00 2026-05-14T22:21:43+00:00

I am starting an installer from my application and then synchronously waiting for it

  • 0

I am starting an installer from my application and then synchronously waiting for it to complete.

Process installerProcess = Process.Start("TheProcessName");

// Must EnableRaisingEvents before calling synchronous method WaitForExit 
// according to MSDN documentation.
installerProcess.EnableRaisingEvents = true;

installerProcess.WaitForExit();

My application needs to know if this installer completed successfully or not. If the user cancelled it or it failed for any reason, I need to find out.

I tried the ExitCode property of the process thinking that ‘0’ would signify success and all other codes would signify failure but it showed the same exit code for a successful or unsuccessful install so now I am stumped. Any ideas? Or is there a better way of doing this than I am currently doing it?

  • 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-05-14T22:21:44+00:00Added an answer on May 14, 2026 at 10:21 pm

    I believe the approach Windows uses for checking installer compatibility is to watch the number of keys under the Uninstall registry key. If this increases, chances are good that the install was a success. In your case you could probably look for just any relevant registry key installed by the particular installer you launch, but its uninstall key could be a good choice.

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

Sidebar

Related Questions

I am starting an application (EXE) through Installer( MSI). While installing the MSI in
I tried starting my Rails application but got this error message from Passenger: Ruby
Starting with a already existing installscript 11.5 installer, we created a update installer (differential
I'm in a kind of misery. I got an installer installing and starting a
Starting from this code: class Base{ public: virtual void foo(){....} }; class Derived{ public:
Starting from ASP.NET MVC Preview 3, HTML.Button ( and other related HTML controls) are
I am using the script from this answer https://stackoverflow.com/a/1681410/22 to insert a launch application
I'm starting android development from just three days, I have downloaded the SDK and
In my WiX installer I want to gracefully close the application that is about
From Netbeans 6.9.1 I chose to include Glassfish 3 on install. I then created

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.