How to reload the process itself?

  • Thread starter Thread starter yxq
  • Start date Start date
Y

yxq

Hello,
I am running program A, i want to add some codes in program A, the code will
close A, then restart A, how to do?
Thank you
 
yxq said:
I am running program A, i want to add some codes in program A, the code
will close A, then restart A, how to do?

I'd be interested in the reasons why you would want to restart the
application (in a new process). Maybe there is a better solution.
 
Hello,
I am running program A, i want to add some codes in program A, the
code will close A, then restart A, how to do?


I think... you need to Create Process B, Shut down A, have Process B start
up A, Close B.
 
No, i seem to see a article about this problem using the new feature in
VS2005, but now can not find it again.
 
No, i seem to see a article about this problem using the new feature
in VS2005, but now can not find it again.

Are you talking about Click-Once deployment?

Click-Once does an auto-update and restart for you, but those stubs are
built into .NET

However, Click-Once has very specific deployment requirements... and may
not be suited for all applications. As a result, you may have to build your
own updater.

Or, you can look at Microsoft's Application Updater Block, which does this
sort of thing without ClickOnce.
 
Back
Top