ShayanFiroozi
Posts: 2
Joined: Sat Aug 05, 2023 9:55 pm

Windows Defender

I need to add my app executable file or its entire folder to the Windows Defender Exception list.

Thank you
Liviu
Posts: 1048
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Windows Defender

Hello,

I'm afraid we do not have predefined support for this.

However, you can easily achieve this through a custom action. For example, you can use a PowerShell script with the Add-MpPreference cmdlet.

Code: Select all

Add-MpPreference -ExclusionPath 'C:\Temp'

This command adds the folder C:\Temp to the exclusion list. The command disables Windows Defender scheduled and real-time scanning for files in this folder.

For more details, please refer to the Add-MpPreference
article.

Hope this helps!

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
zander1989
Posts: 3
Joined: Sun Mar 10, 2024 4:42 am

Re: Windows Defender

Hey, Could you tell me if this will work after the installation to add the entire folder where its installed?


This doesn't rely seem to work :

Code: Select all

Add-MpPreference -ExclusionPath '[APPDIR]'
Liviu
Posts: 1048
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Windows Defender

Hello,

Please note that I replied on the other topic you posted here.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”