How Not To Restart A ClickOnce Application

Normally if you need to restart a WPF application programatically, you would use the following code: private void Restart() { System.Diagnostics.Process.Start( Application.ResourceAssembly.Location); Application.Current.Shutdown(); } If you have a ClickOnce WPF application, you do not want to do this. In order to understand why, you need to understand how a ClickOnce application is normally launched. The shortcut you click on in the Start menu is not a normal shortcut to an executable....

October 20, 2012