djp952 / hdhomeruntray

HDHomeRun system tray application for Windows
Other
14 stars 1 forks source link

Upgrade in place via MSI while app is running isn't working #30

Closed djp952 closed 2 years ago

djp952 commented 2 years ago

The tray icon will disappear, but the process will need to be killed manually. Probably because there is no 'main' window for the application. Might be able to add an event handler to the ShellNotifyIcon class to catch this in WndProc and raise it up the chain to the main application class.

djp952 commented 2 years ago

Fixed via https://github.com/djp952/hdhomeruntray/commit/f3a85c96597621cdceb979123365e954a741e9ed

I also had to add something to the WiX setup package to ask it to close the application with a WM_CLOSE rather than WM_QUERYENDSESSION.

The application seems to be closing normally and not leaving an orphaned tray icon, appears good