Running a process and getting the “Windows protected your PC” message

喜夏-厌秋 提交于 2019-12-19 10:21:55

问题


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();
}

回答1:


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/




回答2:


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/a/16327654/2382032



来源:https://stackoverflow.com/questions/24416371/running-a-process-and-getting-the-windows-protected-your-pc-message

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!