开发者

How to pass parameter to custom Action script in InstallShield?

开发者 https://www.devze.com 2023-03-11 20:51 出处:网络
I made the following script \"[SystemFolder]cmd.exe\" /c \"netsh advfirewall firewall add rule name=\"RuleName\" action=allow protocol=TCP dir=in localport=399\"

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]"
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号