Our application is installed on devices where the user will typically not have administrator permissions.
We are currently using a system task to allow updates, but if the user has the program open it can cause a reboot and can cause issues by modifying resources we are using which is undesirable. Forcing the application to close is not the path forward we would like to take and using suppress reboots will still cause the strange behavior when the user is still using the app.
As a mitigation, I have added a small powershell script which will wait for the program to close before continuing and failing the install if it's been open for an hour so as to not waste resources. (As a side note, the updater does not appear to fully close after failing in the powershell script, so the user has to reboot before it will try again. Is this expected?)
Is there a better way to wait for the user to stop using the app?
Can we wait for user input/display progress and status, or does a system task have no way of communicating with the user?
We are currently using version 15.6 with an Enterprise license.
Our update process is to uninstall the previous version, then install the new version.