How to enable my app as "Restartable App"? Does WER plays a role in this?

Rohan Pande 315 Reputation points
2024-04-29T09:21:13.85+00:00

I am building a Win 32 application in C++. I am looking for my application to get restarted upon when the system reboots. I couldn't find much information on how I can make my app restartable.

Can someone please help me how can I make my app restartable only on reboot of the system?

User's image

I have found some documents about Windows Error Reporting (WER). I have read few documents about it, and it says that if an application had failed due to some unhandled exception or if application becomes unresponsive it restarts the application. Right?

A small doubt over here also, if let's say we have Vectored Exception Handling set for the application and the exception handler has caught. We are taking necessary steps to finalize and show the message to user.
Now, if we even don't register for WER will it get invoked automatically?

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,388 questions
0 comments No comments
{count} votes

Accepted answer
  1. RLWA32 40,861 Reputation points
    2024-05-07T15:18:58.2266667+00:00

    In my test on Win 10 22H2 after enabling the user sign-on option to automatically save and restore restartable apps a running Win32 C++ application that called RegisterApplicationRestart was automatically restarted by Windows upon a system restart or sign-off/sign-on. The application was restarted without any error or unhandled exception that would trigger WER.

    0 comments No comments

0 additional answers

Sort by: Most helpful