I am trying to install Payara
through inno setup
and when I run the setup.bat
file, Windows firewall is blocking Java and it requires the user to click on Allow access button each time to continue with the installation.
I have added the below code in the iss
file before executing the batch file to create a rule to allow Java through firewall, but I am still getting the prompt.
Filename: "netsh.exe"; Parameters: "advfirewall firewall add rule name=""Java 8"" dir=in action=allow program=""C:\Servers\java\bin\javaw.exe"" enable=yes"; Flags: RunHidden; StatusMsg: "Configuring Firewall for Java 8...";
I call the batch file using the below code.
Filename: "C:\Servers\install\setup.bat"; StatusMsg: "Starting Payara...";
What am I missing here?
P.S. - I am using Windows 10.
javaw.exe
tojava.exe
and now the access is allowed automatically. – DeeJay007