How do I add netsh advfirewall context command in Visual Studio 2010 Click Once publishing?
Posted
by
Rivers Edge
on Stack Overflow
See other posts from Stack Overflow
or by Rivers Edge
Published on 2010-12-21T15:52:25Z
Indexed on
2010/12/21
15:54 UTC
Read the original article
Hit count: 240
I have a .Net 4.0 Windows application which requires access thru the firewall. I know about the netsh advfirewall firewall command, but I would like very much to have this program allowed at install time (the Click Once deployment).
How can I add this command to execute as a post install command, exectuing as Administrator - i.e. The person doing the install does not have to execute the netsh advfirewall command separately or does not have to go to the Firewall and manually add the program in the Allowed list.
I cannot find an area in Publish in Visual Studio 2010 to insert a post install command line execution.
© Stack Overflow or respective owner