How to pass parameter to custom Action script in InstallShield?
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 开发者_StackOverflow社区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:
"[SystemFolder]cmd.exe" /c "netsh advfirewall firewall add rule name="RuleName" action=allow protocol=TCP dir=in localport=[SERVER_PORT]"
精彩评论