QWebEngineProcess and Windows Installers
-
Hello,
tl;dr; Does QWebEngineProcess handle WM_QUERYENDSESSION and WM_ENDSESSION events on Windows?I have an application that uses a QWebEngineView as a top level window, but I'm running into problems with application updates using as msi installer (I'm using Wix). I would like users to be able to run the installer while the app is running and the app to be closed automatically as part of the update, but it's not working (the process isn't stopped, the updater demands a reboot to complete). It seems that the msi installer detects both the main application and a process called "Qt QWebEngineProcess" as running independently (sometimes). I understand that the main Qt app processes the necessary events (WM_QUERYENDSESSION and WM_ENDSESSION), but I'm wondering if the QWebEngineProcess does not? Can anyone shine any light on this please?
-
I think I found the issue - it was because I the app uses a tray icon and WM_CLOSE doesn't fully close the app. This appears to play badly with the Windows restart manager. The solution was to use a custom script to terminate the app during update / removal.