Pages

MSI Custom Action Conditions

These conditons can be used in custom actions, in Tables, and Component installations.
You can execute a custom action or make the component install using conditions as per the requirement.
  1. Action run only during Install
    Condition: NOT Installed AND NOT PATCH
  2. Action only runs during removal of MSI
    Condition: REMOVE
  3. Action runs during Install and repair
    Condition: NOT REMOVE
  4. Action runs during Install and remove
    Condition: There must be no condition
  5. Action calls EXE installed by MSI
    Condition:NOT Installed AND NOT PATCH
  6. Run on initial installation only:
    NOT Installed
  7. Run on initial install or when repair is selected.
    NOT Installed OR MaintenanceMode="Modify"
  8. Run when being uninstalled from command line or add / remove menu.
    REMOVE~="All" OR MaintenanceMode="Remove"
  9. If you want your CA to run only if it is upgrading a previous version UPGRADE_1 (Upgrade property) 

No comments:

Post a Comment