I tried putting
netsh add allowedprogram {app}\game.exe AppName ENABLE
in the installation file of Inno 5.3.1, but it gave me an error.
netsh add allowedprogram {app}\game.exe AppName ENABLE
in the installation file of Inno 5.3.1, but it gave me an error.
directive "netsh add allowedprogram {app}\game.exe AppName ENABLE" has no value[/quote]
I'm trying to add an exception in the port forwarding table using code. The protocol I use is TCP.
the error was
directive "netsh add allowedprogram {app}\game.exe AppName ENABLE" has no value
I'm trying to add an exception in the port forwarding table using code. The protocol I use is TCP.
[/quote]
Are you sure the problem is the local machine, and not the router/firewall/cable/DSL modem ?
If you want to administer the firewall on a Windows machine from code (such as in your installer), you need:
1) To have administrative privilege elevation (typically set ALLUSERS=1 in your .msi file)
2) Use the INetFwMgr interface LocalPolicy property to change settings: http://msdn.microsoft.com/en-us/library/aa365287(v=VS.85).aspx
Here's another link: http://msdn.microsoft.com/en-us/library/aa366421(v=VS.85).aspx