Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

In a C++ application, I need to call the external program "setup.exe" and then exit quickly. "setup.exe" performs updates on the program that calls it.

 

Windows has an API called CreateProcess() that I am thinking about using, but their example on http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/creating_processes.asp shows WaitForSingleObject() and CloseHandle() calls immediately after.

 

I can not wait. The program needs to shut down immediately after calling the external program "setup.exe".

 

Is there a different way to call CreateProcess() that is better for my situation, or do I need to use something else?

Posted

You don't need to use the API though, it's wrapped in the .NET Framework:

 

Process.Start("c:\setup.exe")

 

**EDIT** There is a bug in the [ vb ] tags that has removed my '\' after c: there. It's definitely there.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...