How to execute custom action only in install (not uninstall)

后端 未结 5 1806
栀梦
栀梦 2020-11-30 17:35

I\'m sure this is fairly easy, but I\'ve kind of had a hard time with it. I\'ve got a custom action that executes a different (non-msi) installer on installation. Unfortunat

5条回答
  •  悲哀的现实
    2020-11-30 17:57

    Add a condition on the action so it's only triggered during installation, not uninstallation.

    Action run only during Install

    NOT Installed AND NOT PATCH
    

    Action runs during Install and repair

    NOT REMOVE
    

    Run on initial installation only:

    NOT Installed
    

    Run on initial install or when repair is selected.

    NOT Installed OR MaintenanceMode="Modify"
    

    To only run an action during uninstall use the following condition:

    REMOVE~="ALL"
    

    To only run an action during upgrade:

    Installed AND NOT REMOVE
    

提交回复
热议问题