How can I perform a custom action in WiX that only executes on install or uninstall?

前端 未结 2 764
一个人的身影
一个人的身影 2021-02-12 20:06

I have two custom actions, one of which I\'d like to execute when my product is installed and the other when it is uninstalled.

My custom action is currently called from

2条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-12 20:53

    Try next
    1. Only for Installation:

    
    NOT Installed AND NOT REMOVE
    
    

    2. For Uninstall try to use: Rob's answer

    UPGRADINGPRODUCTCODE property is set only during RemoveExistingProducts CA.

提交回复
热议问题