Windows defender endpoint and clickonce VSTO plugin

Cédric Boivin 0 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

Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,647 questions
Microsoft Defender for Cloud
Microsoft Defender for Cloud
An Azure service that provides threat protection for workloads running in Azure, on-premises, and in other clouds. Previously known as Azure Security Center and Azure Defender.
1,233 questions
0 comments No comments
{count} votes