I have a Java Web-Start-based application, which utilizes several native ".exe" utilities. All jars are signed and the app gets all possible permissions from the user ( <security><all-permissions/></security>
in the .jnlp descriptor). The problem is that one of those ".exe" utilities tries to open and listen on some port, which causes the standard Windows Firewall window to pop-up. Example:
(source: 7tutorials.com)
I want users not to be presented with any messages of that kind after they have agreed to give my app unrestricted permissions during the JNLP launch. As far as I know, programmatically adding firewall rules can be either performed using the netsh tool, or by messing with the registry, both of which requires Admin permissions.
I tried to play around with Elevation PowerToys, calling them from Java, but they pop up another message, explicitly requesting the admin rights.
Question: Is there any way to add a rule for my ".exe" utility into Windows Firewall, without irritating users by additional permission requests?