3

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();
}
Troyen
  • 1,398
  • 2
  • 23
  • 37
ZNackasha
  • 755
  • 2
  • 9
  • 29

2 Answers2

2

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/

Panu Oksala
  • 3,245
  • 1
  • 18
  • 28
1

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

Community
  • 1
  • 1
Eric Scherrer
  • 3,328
  • 1
  • 19
  • 34