Cédric Boivin
Cédric Boivin

Reputation: 11351

Windows defender endpoint and clickonce VSTO plugin

I'm encountering an issue and I'm not sure how to resolve it.

We've developed a Microsoft Outlook VSTO add-in using C# with the .NET framework 4.6.1. We deploy it to our clients using ClickOnce and a URL. Our ClickOnce application is signed with a certificate authority. It's deployed on thousands of machines, however, some of our clients use Windows Defender Endpoint protection.

When the setup.exe is downloaded and installed, there are no issues. The problem occurs when Outlook restarts, and when we publish an update. ClickOnce is configured to check for updates each time Outlook is opened. For most of our clients, this works perfectly fine, except for those using Windows Defender 365 for Endpoint.

ClickOnce downloads the new version, and the files are deleted by Windows Defender during the download.

We have tried several things:

The only thing that has worked, but is far from secure, is to exclude the %userprofile%\AppData\Local\Temp\Deployment folder.

Does anyone have a lead on this? Here's the error message that appears at the time of the download:

Windows defender delete file on update

Upvotes: 0

Views: 205

Answers (0)

Related Questions