Page 1 of 1
Antivirus bother
Posted: Mon Jun 17, 2024 9:06 pm
by matalog
I'm having problems with my antivirus (Kaspersky or Windows) blocking or deleting some programs I run.
It seems that Purebasic, on my computer always runs compilations from a Temp directory that would be unwise to add to the ignore list in my Antivirus software.
Is there a way to run all temporary compilations from a designated folder? One that I can have control over for all of my programs that I wrote before or will write in the future, so I can safely add that folder to the safelist of my Antivirus.
Re: Antivirus bother
Posted: Mon Jun 17, 2024 9:41 pm
by spikey
You can't designate a specific single folder of your choice, but if you set "File → Preferences → Compiler → Defaults → Create temporary executable in the source directory" option, new files will get this setting by default. This setting is also a compiler option you can retrofit to existing programs. Hopefully your AV will be less jumpy about this folder and if not, its safer to whitelist source folders than the temp folder.
Re: Antivirus bother
Posted: Mon Jun 17, 2024 9:44 pm
by mk-soft
Menu Compiler -> Compiler Options -> Compile/Run -> [x] Create temporary in the source directory.
Add your source directory to whitelist
Re: Antivirus bother
Posted: Fri Jun 21, 2024 9:10 pm
by matalog
mk-soft wrote: Mon Jun 17, 2024 9:44 pm
Menu Compiler -> Compiler Options -> Compile/Run -> [x] Create temporary in the source directory.
Add your source directory to whitelist
Thanks. That works fine for files that I select it on. Do I have to set it for every file, even new files? Or is there a way to set it by default?
Re: Antivirus bother
Posted: Fri Jun 21, 2024 9:11 pm
by matalog
spikey wrote: Mon Jun 17, 2024 9:41 pm
You can't designate a specific single folder of your choice, but if you set "File → Preferences → Compiler → Defaults → Create temporary executable in the source directory" option, new files will get this setting by default. This setting is also a compiler option you can retrofit to existing programs. Hopefully your AV will be less jumpy about this folder and if not, its safer to whitelist source folders than the temp folder.
Got it, thanks

.
Re: Antivirus bother
Posted: Sat Jun 22, 2024 11:07 am
by mk-soft
matalog wrote: Fri Jun 21, 2024 9:10 pm
mk-soft wrote: Mon Jun 17, 2024 9:44 pm
Menu Compiler -> Compiler Options -> Compile/Run -> [x] Create temporary in the source directory.
Add your source directory to whitelist
Thanks. That works fine for files that I select it on. Do I have to set it for every file, even new files? Or is there a way to set it by default?
With Avira, it is sufficient to add the folder to the whitelist