I pulled the code straight from MSDN: http://msdn.microsoft.com/en-us/library/ms404263.aspx
This updates my application, but Restart() does not work. The application shuts down, but does not restart.
I added a MenuItem to my Form to validate that Restart() works at all:
private void restartToolStripMenuItem_Click(object sender, EventArgs e)
{
Application.Restart();
}
This will restart the application (of course, performs no updates and is user initiated, so fairly useless).
I have nothing else going on with this application. No event handlers for the Form on shutdown, nothing. This is the most basic WinForm app I could build (just displays a resource JPG in an ImagePanel).
Why does Restart() not work here?