0

I am developing an app in react native. During installing an app (when I run its run-android command in cmd) in emulator antivirus is deleting an exe file as soon as it's downloaded. So how can I prevent from deleting a file it.

New contributor
Afifa Khan is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
  • 1
    Add an exclusion for the download folder. – harrymc Jul 11 at 11:55
  • .. and after downloading add an exclusion for downloaded .EXE. If file is already downloaded and deleted then you can restore it and set as exclusion. – Akina Jul 11 at 12:06
1

Add an exclusion for the download folder:

  • Go to Windows Settings > Update & Security > Windows Security > Virus & threat protection
  • Under Virus & threat protection settings, click Manage settings
  • Under Exclusions, click Add or remove exclusions
  • Click Add an exclusion, and choose File or Folder

You may this way exclude the download folder, or exclude an executable.

  • thanks...but after adding exclusion the file is still deleting – Afifa Khan Jul 11 at 14:21
  • 1
    Do you have another antivirus installed than Windows Defender? – harrymc Jul 11 at 15:06
  • no..i have only one, windows 10 inbuilt antivirus – Afifa Khan Jul 12 at 5:05
  • This should not be happening. See in Settings > Update & Security > Windows Security > Virus & threat protection > Protection history, click the down-arrow of the last entry of "Threat blocked" and let me know the details that are displayed. – harrymc Jul 12 at 5:57

Your Answer

Afifa Khan is a new contributor. Be nice, and check out our Code of Conduct.

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.