Programmatically restart application when it crashes
See the question and my original answer on StackOverflowYou could have a look at the RegisterApplicationRestart function (Windows Vista/2008 minimum)
You could have a look at the RegisterApplicationRestart function (Windows Vista/2008 minimum)