I am running this code and I am getting the "Windows protected your PC" message. Is there a way to tell Windows that this is a safe program and allow it to continue?
The message also states "Windows SmartScreen prevented an unrecognized app from starting. Running this app might put your PC at risk."
private void runProcess(string exeLocation)
{
var process = Process.Start(exeLocation) // I get error here
process.WaitForExit();
}
This feature is built to protect users. Running other "unsigned" programs can be very dangerous for users. Maybe this helps you bit: http://blog.aha-soft.com/windows-smartscreen-prevented-an-unrecognized-app-from-running/
Your application must have enough "reputation" to not trigger this warning. Here is some more info on how to gain such reputation:
http://ie.microsoft.com/testdrive/Browser/DownloadReputation/Default.html?o=1
Also, see:
来源:https://stackoverflow.com/questions/24416371/running-a-process-and-getting-the-windows-protected-your-pc-message