I have this windows mobile application.
I’d like to launch an updater.exe that will update my mobile app. But I need to stop my mobile app before the updater process launch .. how can I achieve this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
What I’ve done is if you’re launching the update application from inside your own, execute the updater with
Process.Start("\Path\To\Updater.exe");, then immediately close the main app (withthis.Close();orApplication.Quit();. It should work just fine.To kill the main application from inside the updater, you’ll have to use p/invoke and system call methods to find and kill the main application. It should end up something like this (untested):
then call it with
CloseWindow.Close("My Application Title");.