Hi,
I'm trying to add a rule for our program when installing the application. However it doesn't work for a private profile but it does work on a domain profile. Even weirder is when I delete the rule after setup and add the same rule again it does work!
The rule I'm adding during setup (InstallShield) is:
netsh advfirewall firewall add rule name=MyApp dir=in program="c:\myapp\appie.exe" action=allow protocol=UDP edge=deferuser profile=any
When retrieving the rule info (netsh advfirewall firewall show rule name=MyApp) I get:
Rule Name: MyApp
----------------------------------------------------------------------
Enabled: Yes
Direction: In
Profiles: Domain,Private,Public
Grouping:
LocalIP: Any
RemoteIP: Any
Protocol: UDP
LocalPort: Any
RemotePort: Any
Edge traversal: Defer to user
Action: Allow
Like I said when I delete the rule and add it again on the command line it does work but the output when retrieving the info is exactly the same !
TIA,
Erik
I'm trying to add a rule for our program when installing the application. However it doesn't work for a private profile but it does work on a domain profile. Even weirder is when I delete the rule after setup and add the same rule again it does work!
The rule I'm adding during setup (InstallShield) is:
netsh advfirewall firewall add rule name=MyApp dir=in program="c:\myapp\appie.exe" action=allow protocol=UDP edge=deferuser profile=any
When retrieving the rule info (netsh advfirewall firewall show rule name=MyApp) I get:
Rule Name: MyApp
----------------------------------------------------------------------
Enabled: Yes
Direction: In
Profiles: Domain,Private,Public
Grouping:
LocalIP: Any
RemoteIP: Any
Protocol: UDP
LocalPort: Any
RemotePort: Any
Edge traversal: Defer to user
Action: Allow
Like I said when I delete the rule and add it again on the command line it does work but the output when retrieving the info is exactly the same !
TIA,
Erik
My Computer
- OS
- Windows 7 Ultimate x64
- CPU
- Intel Core2Quad Q8200 2.34 GHz
- Memory
- 4 GB
- Graphics Card(s)
- Yes
- Sound Card
- Yes
- Screen Resolution
- 1600x1050 and 1280x1024
- Hard Drives
- 500 GB
500 GB
1.5 TB
- Case
- Closed
- Cooling
- Just enough
- Keyboard
- Yes
- Mouse
- Yes
- Internet Speed
- 15 Mb/s