运行一个进程并获取“Windows保护您的PC”消息

我正在运行此代码,我得到“Windows保护您的PC”消息。 有没有办法告诉Windows这是一个安全的程序,并允许它继续?

该消息还指出“Windows SmartScreen阻止了无法识别的应用程序启动。运行此应用程序可能会使您的PC面临风险。”

private void runProcess(string exeLocation) { var process = Process.Start(exeLocation) // I get error here process.WaitForExit(); } 

此function旨在保护用户。 运行其他“未签名”程序对用户来说非常危险。 也许这有助于你: http : //blog.aha-soft.com/windows-smartscreen-prevented-an-unrecognized-app-from-running/

您的应用程序必须具有足够的“声誉”才能触发此警告。 以下是有关如何获得此类声誉的更多信息:

http://ie.microsoft.com/testdrive/Browser/DownloadReputation/Default.html?o=1

另见,见:

https://stackoverflow.com/a/16327654/2382032