I am trying to develop a tool to help update the application. To do so
I need to create a separate process to start an installer. I then need
to end the current process, since it will be overwritten by the
installation.

I have found all the articles on creating a process and have tried
using the coredll.dll and OpenNet options, but neither seems to be
working.

We I look at the processes it seems the main process (the caller) never
ends. My belief is that the process I created is somehow still tied to
the original process, but I really am unsure.

Does anyone know of a solution to this problem.

Re: Create a process and end the current process by Paul

Paul
Fri Oct 07 10:55:31 CDT 2005

"Ending the process" is just exiting the program, right? Are you doing
that? No, a forked process has no ownership over the process that started
it.

Paul T.

<stephenculver@gmail.com> wrote in message
news:1128699725.491923.267880@g49g2000cwa.googlegroups.com...
>I am trying to develop a tool to help update the application. To do so
> I need to create a separate process to start an installer. I then need
> to end the current process, since it will be overwritten by the
> installation.
>
> I have found all the articles on creating a process and have tried
> using the coredll.dll and OpenNet options, but neither seems to be
> working.
>
> We I look at the processes it seems the main process (the caller) never
> ends. My belief is that the process I created is somehow still tied to
> the original process, but I really am unsure.
>
> Does anyone know of a solution to this problem.
>



Re: Create a process and end the current process by Rayogen

Rayogen
Fri Oct 07 12:50:46 CDT 2005

I was able to solve this problem by generating a exit command for my
main application. This would do two things. First it would launch the
installer application, second it would exit. The installer application
would wait X seconds for the main app to exit before installing the
updates. After verifcation the install was successful, the installer
would start the main app again and then exit.

External processes don't have access to other ones, and it really isn't
a good idea to try and control other processes.

I hope this helps

Norm Rericha
Applied Data System.net


Re: Create a process and end the current process by Paul

Paul
Fri Oct 07 13:00:56 CDT 2005

You might also try getting a process handle to the parent process and
waiting for it to exit with WaitForSingleObject(), to avoid somewhat
arbitrary time-based delays in the installer...

Paul T.

"Rayogen" <Rayogen@gmail.com> wrote in message
news:1128707446.448084.37470@z14g2000cwz.googlegroups.com...
>I was able to solve this problem by generating a exit command for my
> main application. This would do two things. First it would launch the
> installer application, second it would exit. The installer application
> would wait X seconds for the main app to exit before installing the
> updates. After verifcation the install was successful, the installer
> would start the main app again and then exit.
>
> External processes don't have access to other ones, and it really isn't
> a good idea to try and control other processes.
>
> I hope this helps
>
> Norm Rericha
> Applied Data System.net
>