打开文件 - 安全警告 [英] Open File - Security Warning

查看:63
本文介绍了打开文件 - 安全警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

操作系统:Vista 商业版 64 位
编码:.NET 和第 3 方 EXE
问题:安全

OS: Vista Business 64-BIT
Coding: .NET and 3-rd party EXE
Issue: Security

我已下载 curl.exe 以帮助我从亚马逊加载产品信息.Curl.exe 已经过预编译,并且不是 .NET 应用程序,因此我不喜欢对 curl 的构建进行任何更改.

I have downloaded curl.exe to assist me in loading Product information from Amazon. Curl.exe has been pre-compiled and is NOT a .NET app, so I do not feel comfortable in making any changes to the build of curl.

解决问题.

当我执行 CURL 我得到这个对话框:

When I execute CURL I get this dialog:

说:打开文件 - 安全警告无法验证发布者.您确定要运行此软件吗?运行或取消

无论是手动还是以编程方式运行软件,我都会收到此错误.

I get this error whether I run the software manually or programatically.

当我手动使用这个软件时,我可以处理这个问题,但我试图自动化一个过程来以编程方式运行它,所以我想取消这个对话框.

When I use this software manually I can deal with this, but I am trying to automate a process to run this programatically, so I want to suppress this dialog.

在研究这个时,我得到了很多关于 IE 设置调整的信息......但我没有从我的浏览器运行任何东西,只是在 Windows 中启动 exe,所以这不是问题.

While researching this I got a lot of info on adjustments to IE settings... but I am NOT running anything from my browser, just launching the exe in windows, so that is not an issue.

我还看到很多关于将不同的域和服务器添加到我的允许列表的信息.这是在我自己的机器 (C:\curl.exe) 上本地运行的,所以这也不是问题.

I also see lots of info about adding different domains and servers to my allowed lists. This is running locally on my own box (C:\curl.exe) so that is also not an issue.

我是运行它的机器的管理员.

I am an admin of the box I am running this on.

关于这个的信息很少.

编程笔记:

我正在通过 .NET 运行这个文件:

I am running this file though .NET like this:

string cmd = string.Empty;

cmd += @"--location --user username:userpass -C - ";
cmd += @"--digest -k https://assoc-datafeeds-na.amazon.com/datafeed/getFeed?filename=";
cmd += FeedName + ".gz ";
cmd += @"-o " + FeedFileFolder + FeedName + ".gz";

System.Diagnostics.Process proc; // Declare New Process
System.Diagnostics.ProcessStartInfo procInfo = new System.Diagnostics.ProcessStartInfo(); 

procInfo.UseShellExecute = true;  //If this is false, only .exe's can be run.
procInfo.WorkingDirectory = "C:"; //execute notepad from the C: Drive
procInfo.FileName = "curl.exe"; // Program or Command to Execute.
procInfo.Arguments = cmd; //Command line arguments.

所以另一种选择,如果我无法在 Windows 中更改设置以允许这个没有数字签名的未经验证的 EXE,将调整我的 procInfo 以允许我抑制这个对话框,但我还没有找到它...

So one alternative, if I cannot change a setting within Windows to allow this non-verified EXE without a digital signature, would be an adjustment to my procInfo to allow me to suppress this dialog, but I have not found it...

有什么想法...?

谢谢,汤姆

推荐答案

Windows 会跟踪二进制文件的来源,因此即使不是从浏览器运行,下载的二进制文件仍会被标记为不安全.

Windows keeps track of where the binary came from, so downloaded binaries are still marked as unsafe even when not run from the browser.

从 exe 的文件属性中,单击取消阻止".

From file properties for the exe, click "Unblock".

这篇关于打开文件 - 安全警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆