title: Programmatically add an application to Windows Firewall
body: <p>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 <em>invisible</em> to the end user?</p>
  
  <p>(The application is written in C#)</p>