编程应用程序添加到Windows防火墙 [英] Programmatically add an application to Windows Firewall

查看:647
本文介绍了编程应用程序添加到Windows防火墙的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个安装,并通过更新的ClickOnce应用程序。需要添加作为例外添加到Windows防火墙通过FTP应用程序下载文件,因此。正因为如此ClickOnce的作品,路径与每一个更新的EXE的变化,所以异常也需要改变的方式。什么是有防火墙所做的更改的最佳途径,这样它的无形的最终用户?

I have an application that is installed and updated via ClickOnce. The application downloads files via FTP, and therefore needs to be added as an exception to the windows firewall. Because of the way that ClickOnce works, the path to the EXE changes with every update, so the exception needs to change also. What would be the best way to have the changes made to the firewall so that it's invisible to the end user?

(应用程序是用C#)

推荐答案

我发现这篇文章,其中有包括用于操纵Windows防火墙完整的包装类。 <一href=\"http://web.archive.org/web/20070707110141/http://www.dot.net.nz/Default.aspx?tabid=42&mid=404&ctl=Details&ItemID=8\"相对=nofollow>添加到例外列表应用程序Windows防火墙

I found this article, which has a complete wrapper class included for manipulating the windows firewall. Adding an Application to the Exception list on the Windows Firewall

ClickOnce的沙箱没有present任何问题。

The ClickOnce sandbox did not present any problems.

这篇关于编程应用程序添加到Windows防火墙的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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