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

Issue in custom action

I want to make a script that open port in installation and close it in un-installation
I made the both scripts but every time
script for open port runs in install and in uninstall so after uninstalling i have 2 rules for open that port and close port never run

I have attached screen shots about my configuration in this custom actions

please help ASAP
Labels (1)
0 Kudos
(5) Replies
Not applicable

Use below conditions
“NOT Installed” to run only during install.
“REMOVE=ALL” to run only during uninstall.
0 Kudos
todayisnow
Level 3

where i can put this conditions ??
and another question
in close port the script that should run in uninstall, should I put it in "Install exec seq" or not
0 Kudos
TsungH
Level 12

0 Kudos
todayisnow
Level 3

Thanks alot alot my issue has been resolved
the prob was REMOVE=ALL has to be me written REMOVE="ALL"
0 Kudos
Not applicable

1. You can add condition in Install Exec Condition (If you sequence the custom action in “Install Exec Condition”).
2. For uninstallation you can schedule the CA in execute sequence otherwise it won’t run if you start the uninstall directly from “Add\Remove panel ->Remove. (You need to use “change”).

Also, make sure if you make system level changes you need Deferred execution, you can schedule Deferred execution only in-between InstallInialize to InstallFinalize. Deferred is very safe as we can rollback.
0 Kudos