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.
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.
Put the following in a file named
disable_real_time_protection.reg and save it. Double click that file and you are done. To undo, just change the
1 in the
dword values to a
0 and repeat the instructions above.
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection] "DisableRealtimeMonitoring"=dword:00000001 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender] "DisableAntiSpyware"=dword:00000001