MS$$ defender kill pb application yesterday suddenly

Everything else that doesn't fall into one of the other PB categories.
moricode
Enthusiast
Enthusiast
Posts: 162
Joined: Thu May 25, 2023 3:55 am

MS$$ defender kill pb application yesterday suddenly

Post by moricode »

MS$$ defender kill pb application yesterday suddenly on customer's pc after an MS update,
the client was frustrated and busy to try to restore it , disable widows update , uninstall window update , no help at all, last to turn off the defender permanently.

That's why use pb to develop commercial software is not a good choice , unless make friend with MS.

// Moved from "Coding Questions" to "General Discussion" (Kiffi)
User avatar
idle
Always Here
Always Here
Posts: 5834
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: MS$$ defender kill pb application yesterday suddenly

Post by idle »

have you tried submitting the application to microsoft
https://www.microsoft.com/en-us/wdsi/filesubmission
your user can flag the program as exempt form windows defender as well rather than turning it off
User avatar
Caronte3D
Addict
Addict
Posts: 1355
Joined: Fri Jan 22, 2016 5:33 pm
Location: Some Universe

Re: MS$$ defender kill pb application yesterday suddenly

Post by Caronte3D »

Yes it's a pain every time :?
Workaround: Tell your clients to make a windows defender exception in the folder where your program is installed so no need to totally disable it.
infratec
Always Here
Always Here
Posts: 7575
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: MS$$ defender kill pb application yesterday suddenly

Post by infratec »

Or ... try to make you a friend of MS$$ and use code signing for your programs. :wink:

If you make 'professional' software for windows, you have to use code signing.
Without you can not come into the MS store for example.
Last edited by infratec on Wed Feb 05, 2025 10:14 am, edited 1 time in total.
Fred
Administrator
Administrator
Posts: 18150
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: MS$$ defender kill pb application yesterday suddenly

Post by Fred »

moricode wrote: Wed Feb 05, 2025 3:50 am That's why use pb to develop commercial software is not a good choice , unless make friend with MS.
As if it was a PB only issue, lot of software done in C/C++ are also wrongly tagged, so please don't assert such things if you don't know.
User avatar
deeproot
Enthusiast
Enthusiast
Posts: 284
Joined: Thu Dec 17, 2009 12:00 pm
Location: Llangadog, Wales, UK
Contact:

Re: MS$$ defender kill pb application yesterday suddenly

Post by deeproot »

Fred wrote: Wed Feb 05, 2025 9:08 am
moricode wrote: Wed Feb 05, 2025 3:50 am That's why use pb to develop commercial software is not a good choice , unless make friend with MS.
As if it was a PB only issue, lot of software done in C/C++ are also wrongly tagged, so please don't assert such things if you don't know.
Exactly right! The problem is certainly not with PB.

I've had this same issue a number of times, the latest just three weeks ago with an old and valued customer. It was easily fixed by uninstalling the program (which would no longer execute after the MS update) and then a clean reinstall. The application, same version as before, then worked again with nothing reported by MS Defender. The customer's data, a big SQLite database, was not affected as it's stored separately. Customer was happy because other things broke on their system that were not as easy to fix!

I exclusively use Purebasic for my commercial 'desktop' software products for the last 12 years, Windows, Mac and Linux. It was, and remains, the best choice.
BarryG
Addict
Addict
Posts: 4118
Joined: Thu Apr 18, 2019 8:17 am

Re: MS$$ defender kill pb application yesterday suddenly

Post by BarryG »

moricode wrote: Wed Feb 05, 2025 3:50 amThat's why use pb to develop commercial software is not a good choice
I disagree, as does my PayPal account. Just whitelist your exe with the relevant anti-virus company with each update, as I do. And as many C coders do as seen on StackOverflow. This is not exclusively a PureBasic issue.
Quin
Addict
Addict
Posts: 1122
Joined: Thu Mar 31, 2022 7:03 pm
Location: Colorado, United States
Contact:

Re: MS$$ defender kill pb application yesterday suddenly

Post by Quin »

Seconding everything said here, PB is one of the best choices for comertial desktop app development that exists today, as well as casual apps.
BTW, if you're using MS defender, you definitely want to go turn off spynet. Microsoft calls this "Realtime protection" in the settings, but internally it's called Spynet. There's a reason for that, and all it does is send your data to MS and lead to more false positives :twisted:
Since turning it off I hardly ever get my PB executables flagged, unless I compress them with UPX, but that makes sense unfortunately, and truth be told I've become less in favor of using UPX and similar packers the more I've learned about them. It compresses the executable on disk, but it means that the whole executable has to be uncompressed into application-private memory. With a normal executable, the OS can load just the pages that are needed on-demand into shared memory, and free those pages if memory gets tight, since it can always reload them from disk later. Besides, even with the new MSVC toolchain, PB's executables are impressively small.
moricode
Enthusiast
Enthusiast
Posts: 162
Joined: Thu May 25, 2023 3:55 am

Re: MS$$ defender kill pb application yesterday suddenly

Post by moricode »

Quin wrote: Wed Feb 05, 2025 10:12 pm Seconding everything said here, PB is one of the best choices for comertial desktop app development that exists today, as well as casual apps.
BTW, if you're using MS defender, you definitely want to go turn off spynet. Microsoft calls this "Realtime protection" in the settings, but internally it's called Spynet. There's a reason for that, and all it does is send your data to MS and lead to more false positives :twisted:
Since turning it off I hardly ever get my PB executables flagged, unless I compress them with UPX, but that makes sense unfortunately, and truth be told I've become less in favor of using UPX and similar packers the more I've learned about them. It compresses the executable on disk, but it means that the whole executable has to be uncompressed into application-private memory. With a normal executable, the OS can load just the pages that are needed on-demand into shared memory, and free those pages if memory gets tight, since it can always reload them from disk later. Besides, even with the new MSVC toolchain, PB's executables are impressively small.
Thanks for this valuable information ,

I should also thanks to MS$$ who make so much "trouble" so that we developer has so much job to do for configuration that the customer don't know , we will never be jobless :)

of cause i like PB the way of language style and conception , but that also come with it's own obstacles and barriers , and it doesn't stop me either , i has totally discard the GUI system (widows and gadget , 2D drawing ... ) and build my own custom GUI from win32 API natively.

Thanks again.
Post Reply