Hi,
I'm trying to write some code that will closed down and restart my application once it have completed a code download using the Updater application block (InProcess method scenario). I've tried the following:
This performs the shutdown and restart but doesn't activate the PostActivationExitActivationProccess in between.
Any ideas welcomed!
Cheers,
Kevin
I'm trying to write some code that will closed down and restart my application once it have completed a code download using the Updater application block (InProcess method scenario). I've tried the following:
Code:
//CheckUpdate is my class for checking and downloading updates.
//Returns true if an update is waiting to be applied
if (CheckUpdates.RestartRequired == true)
{
Application.Exit();
System.Diagnostics.Process.Start(Application.ExecutablePath);
}
This performs the shutdown and restart but doesn't activate the PostActivationExitActivationProccess in between.
Any ideas welcomed!
Cheers,
Kevin