I made the following script
“[SystemFolder]cmd.exe” /c “netsh advfirewall firewall add rule name=”RuleName” action=allow protocol=TCP dir=in localport=399″
and i made a dialog in setup that take the Port number and set it to a property called ServerPort ..
now my question is how to pass this value to this script ?
First you should change the property name to SERVER_PORT so it’s public. Properties with lowercase letters do not pass their modified values to InstallExecuteSequence.
After that, you can try something like this: