Windows defender endpoint and clickonce VSTO plugin

Cédric Boivin 10 Reputation points
2023-06-28T17:10:17.8666667+00:00

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:

  • Adding our certificate to the trusted publishers
  • Signing all DLLs that weren't signed with our public certificate

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:
User's image

Microsoft 365 and Office | Development | Other
Microsoft Security | Microsoft Defender | Microsoft Defender for Cloud
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.