I am a software developer and I am coding and building .exe files. Since my code changes frequently, so the yielding exe file changes. Every time an exe file changes, Defense+ detects this changes and ask me again and again and again if it should be isolated or not.
In order to set up a rule for a folder, you’ll need to set up a file group.
Go to Defense+ → Computer Security Policy → Protected Files and Folders, and click the Groups button. Click Add → Select From → Browse, and navigate to the folder you want to add. Give the group a name.
Then go to Defense+ → Computer Security Policy → Defense+ Rules then click Add, then Select → File Groups, and select the new group you just created. Click the radio button next to Use a Predefined Policy and select Installer or Updater.
Now CIS will let your self-compiled .exe’s to do whatever they want without any alerts.
Thank you for the screen shot. Now I completed your instructions.
But now, there is a different problem. My compiler says that the exe file is not writable. It can not generate a new exe file or modify the current one for some reason. It give the following message:
error LNK1168: cannot open C:\...\program.exe for writing
I can delete the exe file by using Windows explorer. Doing so, the compiler can successfully create a new exe file when I build the code. But afterwards, when I modify the code and build it for a second time, it again gives the error message above.
I don’t know because now Defense+ should be keeping its hands off the file. Is the compiler a trusted application? If you disable Defense+ temporarily from the tray icon, does this error message go away?
I disabled Defense+, but there are still the same write errors. Disabling did not change anything.
I set all the IDE files, code files, exe files as installer/updater. I set an exclusion for the exe folder under antivirus settings. It is still the same. It still gives the same error.
But, there is something strange. After I get that write error, if I wait for a minute and just try again, I don’t get any error. I get the error after my first attempt to compile and run my changed code; waiting for a minute and then trying again compiling and running succeeds.
Then, when I change my code again, again I get the same error. And again I have to wait for a minute and try again to succeed… and so on.
If disabling Defense+ has no effect, this suggests that the issue isn’t due to Defense+. However, a temporary disabling still has drivers pertaining to Defense+ loaded.
If you go to Defense+ → Defense+ Settings → General Settings, and select Deactivate Defense+ permanently, then click OK and restart your system. Defense+ will be completely disabled at this point. Does the error still occur?
The compiler is Visual Studio. Until yesterday, I was using both Visual Studio, Avast Antivirus and Comodo Firewall peacefully. Yesterday, I uninstalled Avast Antivirus and Comodo Firewall, and installed Comodo Internet Security instead (Except for this, I didn’t do any single tiny change on my system, didn’t install anything, didn’t alter settings of any software, just didn’t do anything.). After this modification, these error messages started.
After CIS installation I turned off several Windows services before rebooting my machine. And afterwards, I completely forgot about this. In this thread, I said that I didn’t do any changes besides CIS installation. I’m sorry about that, I forgot these disabled services.
After trying everything (virus scan, running chkdsk for 6 hours, reinstalling CIS,…), I googled the linker error to find the real reason. I just turned on that service, and the error disappeared.
Thank you for helping me, and again I’m sorry for taking your time because of my own mistake.