我可以标记一个外部的exe作为"安全运行(未知出版商)QUOT;编程? [英] Can I mark an external exe as "safe to run (Unknown publisher)" programmatically?

查看:164
本文介绍了我可以标记一个外部的exe作为"安全运行(未知出版商)QUOT;编程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,我有我自己的应用程序,MAIN.EXE。在某些计算机,其中的安全级别较高,会显示是因为未知发布者的警告

So I have my own application, "main.exe". In some computers where the security level is higher it will display a warning because of the "unknown publisher".

我试图绕过了。

现在我知道,在右侧办法要做到这一点是签署装配买了证书,并成为著名出版话,就不会显示该警告,但证书并不便宜。

Now I know that the right way to do it is to sign the assembly buy a certificate and be a known publisher then it will not display this warning, but certificates are not cheap.

我的问题是,有没有办法了,我可以运行不同的exe文件(如安装程序),我将建立在vb.net/C#,这将标记不知我的应用MAIN.EXE作为安全运行或信任?因此它将不会在所有计算机的警告味精运行。

My question is, Is there a way were I can run a different exe (like an installer) that I will build in vb.net/C#, That will mark somehow my application "main.exe" as "safe to run" or "trusted"? so it will run without the warning msg in all the computers.

重要提示 - 在安装程序将使用管理员权限运行

Important note - The "installer" will run with admin privileges.

推荐答案

在很多试图我得到了一个很好的解决办法。

After a lot of trying I got to a very good workaround!

我发现这个的Visual Studio 2015年安装项目在这里:的 https://visualstudiogallery.msdn.microsoft.com/f1cc3f3e-c300-40a7-8797-c509fb8933b9

I found this Visual Studio 2015 Installer Projects here: https://visualstudiogallery.msdn.microsoft.com/f1cc3f3e-c300-40a7-8797-c509fb8933b9

女巫使您能够创建选项,并安装到您的项目。

Witch gives you the option to create and installer to your project.

下载并安装此插件后你将能够安装程序项目添加到您的主项目。

After downloading and installing this addons you will be able to add an installer project to your main project.

然后你需要选择将安装程序安装哪些项目:

Then you need to select what project will the installer install:

然后就可以建立此安装程序的项目,你会得到2安装文件:

Then you can build this installer project and you get 2 installation files:

然后你做!

现在你可以不用对未知发布者任何警告味精运行setup.exe,重要的是要注意,必须启动Setup.exe,而不是和的setup.msi开始时SETUP.EXE,你必须有在的setup.msi同一文件夹中。虽然安装您的应用程序会要求管理员权限,但它不会给你这是一个非安全应用一个可怕的警告,味精。

Now you can run the setup.exe without any warning msg about the "unknown publisher", important to note that you must start the Setup.exe and not Setup.msi and when starting the Setup.exe you must have the Setup.msi in the same folder. While it installs your app it will request admin privileges but it will not give you a scary warning msg about "this is an un-safe application".

您的应用程序安装后,您将能够运行它(从位置设置了安装到),并运行它,我的意思是,在安装目录中将您的应用程序exe文件,你可以没有任何警告的MSG运行。

After your app is installed you will be able to run it (from the location you set the installing to), and by running it I mean that in the installation directory you will have your app exe file and you can run it without any warning msgs.

所以基本上所发生的事情是,你当安装程序开始安装但在那之后,你的应用程序将被信任,并没有任何封邮件只运行一定要给管理员权限。

So basically what is happening is you only must give admin privileges when the installer starts the installation but after that you app will be trusted and will run without any msgs.

有关Setup.exe和你的setup.msi可以加入他们二用的IExpress 1 exe文件。

About the Setup.exe and Setup.msi you can join them two a 1 exe using IExpress.

这篇关于我可以标记一个外部的exe作为"安全运行(未知出版商)QUOT;编程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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