cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
todayisnow
Level 3

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 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 ?
Labels (1)
0 Kudos
(4) Replies
Babylon
Level 2

Why dont you use VBS instead of command prompt? This will be silent
0 Kudos
todayisnow
Level 3

I dunno how to do that 😞
0 Kudos
rrinblue22
Level 9

If it's Basic MSI project
Save the value to a public property [TEST]--all caps in your dialog which can be retrieved in your script using MsiGetProperty
0 Kudos
todayisnow
Level 3

thanks a lot
0 Kudos