I'm trying to use the application restart services in Microsoft.WindowsAPICodePack.ApplicationServices
, however the restart isn't working. When the application quits due to an unhandled exception it isn't restarted. I've tried with both a Click Once install and as a stand alone EXE (no installer), running on Windows 8.
I'm using the following code to register for the restart:
ApplicationRestartRecoveryManager.RegisterForApplicationRestart(new RestartSettings(string.Empty,
RestartRestrictions.None));
Any suggestions? Thanks.