tom-weiland / csharp-game-launcher

Source code from my tutorial on YouTube about building a game launcher/auto updater with C# & WPF.
MIT License
107 stars 61 forks source link

Detected by Windows Defender #9

Open warriorCavt opened 6 months ago

warriorCavt commented 6 months ago

Apparently, the System.Net library is really common in Trojans. Thus, publishing my launcher causes all the people to get the 'Threats found' notification and can not run it.

Also, what .NET WPF version to choose, so almost no one wouldn't need to install it?

I'm using 7zip program (a folder '.res' in the build folder) to unpack the .7z files downloaded, instead of .zip (I'm using Discord as hosting game, and pastebin to host versions).

Also, I' using Costura.Fody to smaller the number of files, I'm also hiding all except .exe files (to make it easier for less tech-saavy people to launch the proper file) before packing into zip and sending via my game's Discord.

I'm going to fork this project and publish a better version of the launcher, when this is fixed. It will include:

Version file will look like this if I don't use JSON (it works by separating strings by "\r\n":

[version in string]
[link to the archive with the game]
[archive filename]
[changelog in next lines]
<!nv> (version separator)
tom-weiland commented 6 months ago

Apparently, the System.Net library is really common in Trojans. Thus, publishing my launcher causes all the people to get the 'Threats found' notification and can not run it.

I think the main problem is that the application is not signed. If you get a code signing certificate I believe it stops this popup, though I think it costs money to acquire one.

Also, what .NET WPF version to choose, so almost no one wouldn't need to install it?

.NET Framework, as I think that's preinstalled on all Windows machines. Or if you use .NET Core, you can include .NET Core in the launcher files (via the publishing settings)—this will avoid users having to install it separately/manually, but will somewhat increase the launcher install size.