Search code examples
c#wpfclickoncesystem-traynotifyicon

notification icon setting after click-once deployment


I have a click-once deployed app that uses a notification icon created using the Hardcodet WPF NotifyIcon. When I deploy it and initially install it, Windows hides the icon by default (as it should). So I change the setting for the app to "always show icon and notifications". But every time I update to a new version, Windows thinks it's a new app and hides it again. Is there any way to get Windows to retain the visibility setting for my notify icon after an update?


Solution

  • Unfortunately, there's no way to get ClickOnce to handle this. This comes up periodically in the MSDN ClickOnce forum, and since Bing is my friend, I can provide you with this link to one of the articles that has some ideas about it.