Call this program, then exit your application. This solution is quite widely used.
Another option:
Call your application with specific parameter (eg. /restarted). The new instance should wait for the old one to terminate before performing any tasks. Then shut down the old instance.
Write a program, which will:
Call this program, then exit your application. This solution is quite widely used.
Another option:
Call your application with specific parameter (eg. /restarted). The new instance should wait for the old one to terminate before performing any tasks. Then shut down the old instance.
I think You haven't try with Google. Here is a sample project in codeProject. I think this is what you need
How To Create a Self-Restartable Application