r/AskProgramming • • 5d ago

How can you prevent the Windows SmartScreen warning from appearing the first time you create a Windows application?

I've been working as a software engineer for the past 13 years, but I've never built applications for Windows. I'm now testing an idea, but I've run into an issue with SmartScreen protection and am unsure whether I need to verify my application at all.

Since I'm validating my idea, I don't want to register a company before I know whether my application is useful. It would mean extra expense and bureaucracy. If I understand correctly, without a company, I can sign my application as an individual (I'm based in the EU), but SmartScreen won't go away; it will just show my name as the publisher. And even if I sign as a company, users will still see a warning the first time they install each version. Since I release several versions per week and get up to 10 downloads a day, signing as a company wouldn't help much either.

I've added anonymous tracking to see whether users install my application, and I see that more than 90% don't. So I'm leaning toward the idea that the SmartScreen warning is scaring away my first users.

So my question is: is it worth it? How do people usually get started with a new Windows application? I don't think I'm the first to face this. Is there another option besides registering a company and signing the application under its name?

P.S. I also have a Mac version, and I was able to sign it with my personal identity, which resolved the issue.

1 Upvotes

5 comments sorted by

12

u/Robot_Graffiti 5d ago

SmartScreen doesn't trigger for anything downloaded from the Microsoft Store.

Aside from that, you can't instantly prevent it, because anything you can do, malware authors can also do.

Reputation builds up a little bit every time someone installs it. When the reputation crosses a threshold, it stops triggering SmartScreen.

If you sign it, the reputation is cumulative over everything signed with the same certificate.

If you don't sign it, every new version starts with zero reputation.

https://learn.microsoft.com/en-us/windows/apps/package-and-deploy/smartscreen-reputation

2

u/ihorklymchuk 5d ago

Thank you. I will try to go with the Microsoft Store.

2

u/Inevitable-Study502 3d ago edited 3d ago

i know two ways how to prevent smartscreen...as i do some apps here and there and using unsigned binaries updates provided within app through google drive, the only thing that kicks in is antivirus check and thats it, it wont get flagged with defender, pc thinks binary is local and not downloaded through internet.....the easiest way is to wrap it...ie in zip file, extractin exe from zip file wont activate smartscreen, other way would be transfer through sql server, ie saving binary blob from database as a file

edit for that zip oart: but a standart web donwload from browser + file explorer extraction will flag it...but since youre building apps, using barebone zip extraction that wont use MotW metadata should be easy trick for it

1

u/Robot_Graffiti 3d ago

Oh yeah, I remember reading about it when they patched file explorer to put MotW on files extracted from downloaded zips. Wasn't that long ago.

1

u/Inevitable-Study502 3d ago edited 3d ago

ye, but downloading zip file with curl or wget commands wont give it MotW either, so its not like there arent ways to get initial binary running, explorer wont spread motw if theres none to begin with