We do an update of our application, which consists of a system service and a UI application. The UI application is running under each user logged in to the system. It is implemented by placing a .lnk
shortcut under the C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup
folder.
The sequence of update is:
- stop service & UI app for all users
- update binary files
- restart the service and UI app
The question is, how to properly restart the UI application if the update was performed in the context of the SYSTEM account (session 0) and the system has a couple of logged-in users?
Windows starts the UI application on each user login, but if it was terminated, the next restart will be on the next user login.
Does Windows have some functionality like restart startup application
?