[DevExpress Support Team: CLONED FROM T706251: System Tray WPF application]
Using the example provided at that link (How to: Use NotifyIconService), the runtime menu gets the attention of my AVG virus scanner, which immediately sets out to quarantine the app as a bad actor. What gives?
The AVG Antivirus tool sets out the T391918 example to quarantine
Answers approved by DevExpress Support
Hi Don,
I installed AVG Free on my side to check the example but the antiviral tool doesn't detect any issues with it - see the attached video. Please make sure that your AVG version is up to date.
Could you also clarify what reasons/messages your antiviral tool shows when it sets the sample to quarantine? What files are under suspect? Also, you can check them using any online antivirus service.
I recommend you contact AVG as their client and send your files so that they can research them and check if this is not a false alarm. I've found the following page on their website: https://www.avg.com/en-us/false-positive-file-form.
I look forward to your reply.
Hello Don,
NotifyIconServce only adds an icon to the System Tray and such an antivirus warning seems to be a false alarm. I assume that you see a tray icon because Visual Studio executes this service's logic at design time. However, when I test the same steps on my machine, I do not see this issue (see the attached screencast).
Perhaps, this behavior is specific to your certain VS version or its settings. In my tests I used our controls v18.2.7 and VS2017 Version 15.9.8 on a machine with Windows 10 Version 1809. Could you please share your settings?
I've also discussed this scenario with our developers and we decided to add extra checks in NotifyIconService so that it does not add an icon to the System Tray if it detects that its logic is executed at design time. We will do this in the context of this thread: T729555 - NotifyIconService's logic can be executed at design time. Add it to your favorites to be informed about our progress.
Please note, I cannot guarantee that these changes will fix this behavior, because I did not manage to reproduce this issue on our side.
Thanks,
Andrey
Windows 10: 1809 (build 17763.379)
Visual Studio 2017 15.9.11
DevExpress 18.2.7 controls
Thank you for the update. Our developers have added corresponding changes to this service. Once we publish the hotfix in the context of the T729555 thread, please test it in your application and let me know if it helps.
Andrey