Why does my application cause a SmartScreen message? - c#

I make software on a regular basis for friends to use and for school tasks. I upload these executable files to my website. but when they download the software and execute it, they get this error
I understand you simply press "More info" to get around this, but is there a way to completely stop this???
I made a small project to test if it will still happen, and it does.
I haven't added any extra code, just that label. I've noticed the error only appears if the file was downloaded from the internet, or copied from an external drive. I want to make a custom installer for a game I'm planning and I don't want this coming up on the installer :/. Anyone able to help out in this situation? Thanks.

Your application needs to be Signed. If you are only giving this software to a few people, just tell them to click 'More info' to run your app.
If you want to distribute more widely you will need to sign your code. Check out this page to see how this can be done.
See this Stackoverflow post that could help you too.

It is the Windows SmartScreen at work and there is not much you can do about it. It would be possible to buy a certificate and sign your executable, but for freeware this is really out of scope. The smartscreen will learn over time, that your software is not dangerous, if it is installed often enough.
The warning is not related to VisualStudio projects, it affects any new released executable.
Actually I support the idea of SmartScreen to protect users, but it should not depend on a certificate, which can be bought by developers.

Related

Windows 10 push notifications in Unity

I have been looking all over and I cannot get notifications in Unity to work without the nasty PowerShell popup needed.
My investigations
Through my investigations, I've found many ways to achieve my goals but only 1 can unsatisfactorily solve my issues. Hopefully, the community here can provide some assistance.
The first option that I found was that you can create notifications with PowerShell commands. Unfortunately, this isn't ideal as when it is ran, the PowerShell will flash on the users screen and that can be very unsettling for users. It is also very hard to customize the code as there is inadequate documentation. If you know of a way to customize PowerShell notifications and run PowerShell commands in Unity without running PowerShell then that would solve my issue,
The second option that I ran across was the Microsoft documentation for creating a toast but no matter what I try, I cannot get it to work. The closest I got was by adding a plugin folder to my assets, and adding microsoft.toolkit.uwp.notifications.7.1.2.zip\lib\netstandard1.4\Microsoft.Toolkit.Uwp.Notifications.dll to the plugins folder but then I get the error .Show() is not a command. Which meant that I can create the toast object but not display it.
Another option is to create a python script but I assume I'd encounter similar issues.
The last option that I've seen was using some 3rd party API called burned toast but I can see that I would have the issues from attempts 1 and 2 going that route.
The last option that I've seen are $60+ assets on the Unity Asset store but there is no guarantee that those will work at all or on Windows. Not to mention, spending money on what should be free is unheard of.

How to allow a C# UWP app manage another UWP app?

I want to do some things, which I feel are very simple, but I cannot do. I have looked at numerous websites and StackOverflow questions. One question has helped me a bit by pointing me in the right direction, but I feel I need more than just that.
Here is what I want to do (basically):
I would like to make a UWP app that can be managed by another app.
By "managed" I mean:
Should be able to install the app.
Should be able to uninstall the app.
Should be able to check for updates and update the app.
It should also be able to launch the app.
Optional requirements:
While launching the app, I would like to have it set the page of a panel to a certain page. Also fine with it clicking on the navbar and change the panel's page
This would be an example of my app would be like (the one with the panel/nav): Question
I would also like an installer (something like a .exe file or .msi file) for the installing app. Not the .appinstaller that visual studio 19 produces. Something like Inno Setup produces.
Is any of this possible?
If so, please give me some sample code/instructions/links. I would be very thankful for any advice/points in the right direction as well!
If not, please suggest what other language/framework I should use to accomplish these tasks (Is "tasks" the right word?). I don't mind learning anything and have unlimited time. Don't care about the learning curve either. (If I need C++, I will do it. ONLY IF I NEED IT!!!)
Thanks all!
P.S. I know about WPF or WinForms. I don't want to use them because of their age.
As the Rob Caplan said, PackManager class doesn’t support uwp app, it is suitable for desktop app. So maybe you need to create a wpf app and use Desktop bridge to package it into uwp app so that you could use this api. In addition, you could find the sample here about installing appx package, its parent directory Windows-classic-samples/Samples/ also contains other samples you need, such as PackageManagerRemovePackage, etc, please check it.

Click once desktop application and roaming profiles

I hope someone can help me. I'm working on a desktop application, which uses the click once install and update logic.
We've been using it for some time now without issues, but some of our clients are now using roaming profiles and this seems to remove the installation, on log off. This means our clients need to download and install the application each time they log back onto the PC.
Has anyone had this issue and more important got a work around?
Thanks
I know now, officially Click once does not support, but there is always a way around.
I have create a simple application that works around this issue.
http://coopsblog.wales/Blog/ViewBlog/User-roaming-profile-ClickOnce-application-restore

How can I build a search system to find all references that require an android permission in my project?

Permissions that creep in between android builds of our app is a recurring problem for us at the office.
We work with Unity and use C#. In our project we use various 3rd party packages that we purchased from the Unity Asset Store and these packages update frequently. Sometimes we'll see a new permission creep in and we'll have to pinpoint the last git push to see when it exactly started appearing.
Doing all this stuff and tracking and scanning our code whenever we have an uncalled permission appear is a bit of a downer and takes considerable time.
I was wondering, theoretically speaking, if it's possible to write a script or a piece of code that creeps through our project and libraries within to give us a list of references that require android permissions.
Any guidance about this question is appreciated. I'm not a coder by trade and my knowledge isn't too strong over this subject so I apologize in advance if this questions is out of place.
So this is alittle bit tricky, because in Android Studio 1.5.1 seems like this function disappeared from lint for some reasons I dont know. So use any Android studio below 1.5.1 and it will be OK.
Analyze -> Run Inspection by Name -> "MissingPermissions".

How do I sign my newly created Executable?

I have developed an executable from a Visual C# project. Now whenever the app runs on other machines, the users are presented with a Smart Screen warning. I read more about it and it says that I need to sign my applications using Certificates.
Now the thing is that the Certificates from commercial companies cost a lot so is it possible to generate self signed certificates which can be used to sign the executable? If yes, then please explain how.
Also, is it possible that the Smart Screen warning disappear once many users start using it?
Is there any way also with which I can prevent tampering with the application?

Categories

Resources